Gets the task definition detail. If the deep query parameter is provided also loads all sub tasks.
In order to view the task, the user must either be a close admin, or be assigned as one or more of the performer, reviewer or approver.
Path parameters
-
The identifier of the task definition. Only task definitions defined for the specified entity definition details will be returned
GET
/task-definitions/{id}
curl \
--request GET 'https://usaapi02.cadencyservices.trintech.com/test/api/task-definitions/{id}' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"id": 42,
"parentId": 42,
"name": "string",
"number": "string",
"description": "string",
"instructions": "string",
"isCritical": true,
"entity": {
"id": {},
"name": "string"
},
"performer": {
"id": 42,
"name": "string",
"email": "string",
"userName": "string",
"first": "string",
"middle": "string",
"last": "string"
},
"reviewer": {
"id": 42,
"name": "string",
"email": "string",
"userName": "string",
"first": "string",
"middle": "string",
"last": "string"
},
"approver": {
"id": 42,
"name": "string",
"email": "string",
"userName": "string",
"first": "string",
"middle": "string",
"last": "string"
},
"children": [
{
"id": {},
"name": "string"
}
]
}