Contents
List Tasks
List all tasks. For more information see Tasks document model.
Endpoint:
|
URL |
|
|
Method |
|
|
Expected response code |
|
|
Expected response type |
|
Example:
curl -v \
-H "Authorization: apikey $API_USER:$API_KEY" \
$COREDATA_BASE_URL/api/v2/tasks/
Example response:
List Favourite Tasks
See User home | List favourite Tasks.
Get Task details
Get details of a task.
Endpoint:
|
URL |
|
|
Method |
|
|
Expected response code |
|
|
Expected response type |
|
URL parameters:
-
task_id– ID of an existing task.
Example:
task_id=d6abb06c-7758-11ee-873f-bf996ef088af
curl -v \
-H "Authorization: apikey $API_USER:$API_KEY" \
$COREDATA_BASE_URL/api/v2/tasks/$task_id/
Example response:
Create Task in a Project
Create a new task.
Endpoint:
|
URL |
|
|
Method |
|
|
Content-Type |
|
|
Expected response code |
|
Request body contains a JSON with the following fields:
|
Field |
Type |
Description |
Mandatory |
|---|---|---|---|
|
|
|
ID (in UUID format) of the project the task should be created in. |
Yes |
|
|
|
Title of the task to be created. |
Yes |
|
|
|
Task status. Examples: |
No |
|
|
|
Task status message. |
No |
|
|
|
Task's due date in format |
No |
|
|
|
Task's description. |
No |
|
|
|
List of tags. |
No |
|
|
|
A list of responsible users. |
No |
|
|
|
A list of associated users. |
No |
|
|
|
A list of contact IDs. |
No |
|
|
|
Same as for Project creation. See |
No |
Example:
project_id=ad2e105c-77c8-11ee-aeee-13451b1d7d84
title="New task"
curl -v \
-X POST \
-H "Authorization: apikey $API_USER:$API_KEY" \
-H "Content-Type: application/json" \
-d "{\"project\": \"$project_id\", \"title\": \"$title\"}" \
$COREDATA_BASE_URL/api/v2/tasks/
Where:
-
project_id– ID of an existing project to create task in; -
title– title of the new task.
The response has Location header which contains URL of the newly created task with the task ID:
Location: /api/v2/tasks/f7a82da8-77e5-11ee-999b-d7b89143b3a1/
Update Task
Update an existing task.
Endpoint:
|
URL |
|
|
Method |
|
|
Content-Type |
|
|
Expected response code |
|
URL parameters:
-
task_id– ID of an existing task to update.
Request body contains a JSON with the fields described in Create Task in a Project section above.
Example:
task_id=f7a82da8-77e5-11ee-999b-d7b89143b3a1
title="Updated task"
curl -v \
-X PUT \
-H "Authorization: apikey $API_USER:$API_KEY" \
-H "Content-Type: application/json" \
-d "{\"title\": \"$title\"}" \
$COREDATA_BASE_URL/api/v2/tasks/$task_id/
Delete Task
Delete an existing task.
Endpoint:
|
URL |
|
|
Method |
|
|
Expected response code |
|
URL parameters:
-
task_id– ID of an existing task to delete.
Example:
task_id=f7a82da8-77e5-11ee-999b-d7b89143b3a1
curl -v \
-X DELETE \
-H "Authorization: apikey $API_USER:$API_KEY" \
$COREDATA_BASE_URL/api/v2/tasks/$task_id/
List Tasks in a Project
List tasks in an existing project.
Endpoint:
|
URL |
|
|
Method |
|
|
Expected response code |
|
|
Expected response type |
|
URL parameters:
-
project_id– ID of an existing project to get tasks from.
Example:
project_id=ad2e105c-77c8-11ee-aeee-13451b1d7d84
curl -v \
-H "Authorization: apikey $API_USER:$API_KEY" \
$COREDATA_BASE_URL/api/v2/projects/$project_id/tasks/
Example response: