This endpoint allows you to create a new project with an optional task.
When you send a POST request to this endpoint, the server will attempt to create a new project with the provided project name. If a task name is also provided, a new task will be created and associated with the new project.
The server will respond with a JSON object containing the ID, name, and any associated tasks for the newly created project.
POST
https://desktime.com/api/v2/json/create-project?project={project}&task={task}- project: project name (required)
- task: task name (optional)
Authenticate by sending your API key in the X-API-Key request header.
HEADER
X-API-Key: {apiKey}- X-API-Key: user api key (required)
Response example:
{
"project": {
"id": 228577,
"name": "API Demo project",
"url": "https://desktime.com/app/projects/show/228577",
"created_at": "1592205083",
"created_at_iso": "2020-06-15T07:11:23+00:00",
"tasks": [
{
"id": 2056168,
"name": "API Demo project task",
"created_at": "1592205083",
"created_at_iso": "2020-06-15T07:11:23+00:00"
},
{
"id": 3663467,
"name": "API Demo project task",
"created_at": "1678957066",
"created_at_iso": "2023-03-16T08:57:46+00:00"
}
]
},
"__request_time": "1678957066"
}