POST Cancel
Introduction
Cancels a yard task associated with a specific entry ticket, removing it from the active task queue without completion. This API is used when a task is no longer needed due to changes in plans, entry cancellation, or operational adjustments. The task status is marked as cancelled, and it will not affect performance metrics or completion statistics.
API Request
POST /general-task/entry/{entryId}/{taskId}/cancel
Request Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
| taskId | path | string | Yes | none |
| entryId | path | string | Yes | none |
| X-Tenant-ID | header | string | No | none |
| X-Yard-ID | header | string | No | none |
| Item-Time-Zone | header | string | No | none |
| Authorization | header | string | No | none |
Response Example
200 Response
{
"code": 0,
"msg": "",
"success": false,
"data": null
}Response
| Status Code | Definition | Description | Data Model |
|---|---|---|---|
| 200 | OK (opens in a new tab) | none | RVoid |