Release Task
The Release Task API allowd you to release a task which is in 'Held’ status. With this API, external systems can change one or more task statuses to ‘Ready’ from ‘Held’. These tasks can be executed by the assigned user without accessing the web UI. Users who have the Task/ Can hold/release task permission enabled should be able to put a task on ‘Held’ status.
The following are some ways for calling the Release Task API:
Using the Task ID:
POST.../entity/task/{id}/release/
Using the Task Number:
POST.../entity/task/release/
Category | Name | Required | Type | Description |
---|---|---|---|---|
parameters | facility_id | Integer | Facility context by id | |
parameters | facility_id__code | string | Facility context by code | |
parameters | company_id | Integer | Company context by id | |
parameters | company_id__code | string | Company context by code | |
parameters | task_nbr | X | string | Task which needs to be released |
Using the Bulk Task Release:
POST.../entity/task/bulk_release/
The bulk request API allows you to release task ids belonging to the same company in a given request. The API will not support a request containing task ids belonging to multiple companies.
Using the Bulk Release Task
POST.../entity/task/bulk_release/
Request Body:
The transaction is meant for the task entity. Hence, the users are required to send the following parameters in the body.
POST.../entity/task/bulk_release/
{
"parameters": {
"id__in": [01, 02, 03]
},
"options": {
"commit_frequency": "0",
}
}
The bulk request API allows you to release task ids belonging to the same company in a given request. The API will not support a request containing task ids belonging to multiple companies.