Create asset tasks

POST /actions/projects/{project_id}/task-types/{task_type_id}/assets/create-tasks

Create tasks for assets. Provide a list of asset IDs in the JSON body, or omit for all assets in the project.

Path parameters

  • project_id string(uuid) Required
  • task_type_id string(uuid) Required
application/json

Body Required

array[string(uuid)] array[string(uuid)]

List of asset IDs to create tasks for

Responses

  • 201 application/json

    Tasks created for assets

    Hide response attributes Show response attributes object
    • id string(uuid)
    • name string
    • task_type_id string(uuid)
    • task_status_id string(uuid)
    • entity_id string(uuid)
    • project_id string(uuid)
  • 400

    Bad request

POST /actions/projects/{project_id}/task-types/{task_type_id}/assets/create-tasks
curl \
 --request POST 'http://api.example.com/actions/projects/a24a6ea4-ce75-4665-a070-57453082c25/task-types/a24a6ea4-ce75-4665-a070-57453082c25/assets/create-tasks' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '["b24a6ea4-ce75-4665-a070-57453082c25"]'
Request example
[
  "b24a6ea4-ce75-4665-a070-57453082c25"
]
Response examples (201)
[
  {
    "id": "a24a6ea4-ce75-4665-a070-57453082c25",
    "name": "Asset Modeling",
    "task_type_id": "b24a6ea4-ce75-4665-a070-57453082c25",
    "task_status_id": "c24a6ea4-ce75-4665-a070-57453082c25",
    "entity_id": "d24a6ea4-ce75-4665-a070-57453082c25",
    "project_id": "e24a6ea4-ce75-4665-a070-57453082c25"
  }
]