API Docs
YMS API
Task Management
POST Create Task

POST Create task

Introduction

Creates a new yard task for equipment operations such as receiving, loading, unloading, or moving equipment. Tasks can be assigned to specific users and locations, linked to receipts or loads, and associated with entry tickets. Supports various task types including RECEIVE, LOAD, UNLOAD, and MOVE operations. This API is commonly used when scheduling yard operations or when equipment arrives at the yard requiring specific handling.

POST /general-task/create

Body Request Parameters

{
  "taskId": "string",
  "taskType": "RECEIVE",
  "assignUserName": "string",
  "assignLocationId": "string",
  "customerId": "string",
  "receiptIds": [
    "string"
  ],
  "loadIds": [
    "string"
  ],
  "entryId": "string",
  "assigneeUserId": "string",
  "loadMode": "LIVE_LOAD",
  "description": "string",
  "priority": "string",
  "note": "string"
}

Request Parameters

NameLocationTypeRequiredDescription
X-Tenant-IDheaderstringNonone
X-Yard-IDheaderstringNonone
Item-Time-ZoneheaderstringNonone
AuthorizationheaderstringNonone
Item-Bam-ClientheaderstringNonone
x-facility-idheaderstringNonone
bodybodyobjectNonone
» taskIdbodystringNo任务ID(可选)
» taskTypebodystringYes任务类型
» assignUserNamebodystringNo指派人
» assignLocationIdbodystringNo指派地点
» customerIdbodystringNo客户ID
» receiptIdsbody[string]Nonone
» loadIdsbody[string]Nonone
» entryIdbodystringNonone
» assigneeUserIdbodystringNonone
» loadModebodystringNonone
» descriptionbodystringNonone
» prioritybodystringNoTask priority level (from WMS)
» notebodystringNoTask notes or remarks (from WMS)

Detailed Description

» taskId: 任务ID(可选) 如果指定,则使用该ID;如果不指定,则自动生成

» assignLocationId: 指派地点 在内部处理时会同时赋值给plannedLocationId(计划位置)和locationId(实际位置)

Enum Values

PropertyValue
» taskTypeRECEIVE
» taskTypeLOAD
» taskTypePICK
» taskTypePUT_AWAY
» taskTypeOTHER
» loadModeLIVE_LOAD
» loadModePRE_LOAD

Response Example

200 Response

{
  "code": 0,
  "msg": "",
  "success": false,
  "data": {
    "id": 0,
    "taskId": "",
    "taskType": "",
    "timeStatus": "",
    "startTime": "",
    "lastPauseTime": "",
    "endTime": "",
    "totalRunTime": 0,
    "totalPausedTime": 0,
    "createdTime": "",
    "updatedTime": "",
    "createdBy": "",
    "updatedBy": "",
    "assignUserName": "",
    "plannedLocationId": "",
    "assignLocationId": "",
    "assignLocationName": "",
    "customerId": "",
    "customerName": "",
    "entryId": "",
    "loadIds": [
      ""
    ],
    "receiptIds": [
      ""
    ],
    "taskStatus": "",
    "assigneeUserId": "",
    "description": "",
    "priority": "",
    "note": "",
    "lastStepAssignedUserIds": [
      ""
    ],
    "planedLastStepAssignedUserIds": [
      ""
    ],
    "lastStepAssignedUserNames": [
      ""
    ],
    "planedLastStepAssignedUserNames": [
      ""
    ],
    "lastStepId": "",
    "planedAssignAllSteps": false
  }
}

Response

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