API Docs
YMS API
Shuttle Task/Level 1
POST Cancel Shuttle Task

POST Cancel Shuttle Task

Introduction

Cancels an active or pending shuttle task with a specified reason. Optionally updates the equipment's destination location if the equipment has already been moved. This operation is used when a task cannot be completed as planned due to operational changes or exceptions. Returns a boolean indicating cancellation success.

API Request

POST /shuttle-task/{taskId}/cancel

Body Request Parameters

{
  "cancelReason": "string",
  "toLocation": "string"
}

Request Parameters

NameLocationTypeRequiredDescription
taskIdpathstringYestask ID
X-Tenant-IDheaderstringNonone
X-Yard-IDheaderstringNonone
Item-Time-ZoneheaderstringNonone
AuthorizationheaderstringNonone
bodybodyShuttleTaskCancelCmdNonone

Response Example

200 Response

{
  "code": 0,
  "msg": "",
  "success": false,
  "data": false
}

Response

Status CodeDefinitionDescriptionData Model
200OK (opens in a new tab)noneRBoolean