Create project task type link

POST /data/task-type-links

Create a link between a project and a task type. Sets the priority of the task type within the project.

application/json

Body Required

  • project_id string(uuid) Required
  • task_type_id string(uuid) Required
  • priority integer

    Priority of the task type in the project

    Default value is 1.

Responses

  • 201 application/json

    Project task type link created successfully

    Hide response attributes Show response attributes object
    • id string(uuid)
    • project_id string(uuid)
    • task_type_id string(uuid)
    • priority integer
  • 400

    Invalid project or task type

POST /data/task-type-links
curl \
 --request POST 'http://api.example.com/data/task-type-links' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"project_id":"a24a6ea4-ce75-4665-a070-57453082c25","task_type_id":"b24a6ea4-ce75-4665-a070-57453082c25","priority":1}'
Request examples
{
  "project_id": "a24a6ea4-ce75-4665-a070-57453082c25",
  "task_type_id": "b24a6ea4-ce75-4665-a070-57453082c25",
  "priority": 1
}
Response examples (201)
{
  "id": "c24a6ea4-ce75-4665-a070-57453082c25",
  "project_id": "a24a6ea4-ce75-4665-a070-57453082c25",
  "task_type_id": "b24a6ea4-ce75-4665-a070-57453082c25",
  "priority": 1
}