Create task

POST /data/tasks

Create a task with data provided in the request body. JSON format is expected. The task type must match the entity type.

application/json

Body Required

  • task_type_id string(uuid) Required
  • entity_id string(uuid) Required
  • assignees array[string(uuid)]

Responses

  • 201 application/json

    Task created successfully

    Hide response attributes Show response attributes object
    • id string(uuid)
    • task_type_id string(uuid)
    • entity_id string(uuid)
    • assignees array[string(uuid)]
  • 400

    Task type does not match entity type or task already exists

POST /data/tasks
curl \
 --request POST 'http://api.example.com/data/tasks' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"task_type_id":"a24a6ea4-ce75-4665-a070-57453082c25","entity_id":"b24a6ea4-ce75-4665-a070-57453082c25","assignees":["c24a6ea4-ce75-4665-a070-57453082c25"]}'
Request examples
{
  "task_type_id": "a24a6ea4-ce75-4665-a070-57453082c25",
  "entity_id": "b24a6ea4-ce75-4665-a070-57453082c25",
  "assignees": [
    "c24a6ea4-ce75-4665-a070-57453082c25"
  ]
}
Response examples (201)
{
  "id": "d24a6ea4-ce75-4665-a070-57453082c25",
  "task_type_id": "a24a6ea4-ce75-4665-a070-57453082c25",
  "entity_id": "b24a6ea4-ce75-4665-a070-57453082c25",
  "assignees": [
    "c24a6ea4-ce75-4665-a070-57453082c25"
  ]
}