POST /data/entities/{entity_id}/tasks

Create one task per provided task type for the given entity. Each task type is validated against the entity's project and (for assets) the entity's asset type workflow. When task_type_ids is omitted or empty, default to every task type valid for the entity (project workflow, asset-type workflow if asset, and matching for_entity). Existing tasks for the same (entity, task_type) pair are skipped.

Path parameters

  • entity_id string(uuid) Required

    Unique identifier of the entity

application/json

Body

  • task_type_ids array[string(uuid)]

    Optional list of task type IDs to create. Omit or pass an empty list to default to every task type valid for the entity.

Responses

  • 201

    Created tasks

  • 400

    A task type is not enabled in the project, not in the asset type workflow, or does not target this kind of entity

POST /data/entities/{entity_id}/tasks
curl \
 --request POST 'http://api.example.com/data/entities/a24a6ea4-ce75-4665-a070-57453082c25/tasks' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"task_type_ids":["b24a6ea4-ce75-4665-a070-57453082c25"]}'
Request example
{
  "task_type_ids": [
    "b24a6ea4-ce75-4665-a070-57453082c25"
  ]
}