Gets the task definition detail
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
-
id
integer Required The identifier of the task definition. Only task definitions defined for the specified entity definition details will be returned
Query parameters
-
fetchDepth
integer(int32) We define a
fetchDepth
parameter in the parameters section. It should have positive integer value.
GET
/cs-close-api/task-definitions/{id}
curl \
--request GET 'http://close-service:8082/cs-close-api/task-definitions/{id}'
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"
}
]
}