Job Management
Update Job
Update an existing job's details.
PUT/api/v1/workspace/jobs/{jobId}
Request Body
All fields are optional — only include the fields you want to change.
| Field | Type | Required | Description |
|---|---|---|---|
jobName | string | Optional | Job name |
jobDescription | string | Optional | Job description |
jobStatus | integer | Optional | 0=New, 1=Scheduled, 2=InProgress, 3=Completed, 4=Failed |
jobType | integer | Optional | 0=Unknown, 1=Shipment, 2=Service |
metaData | string | Optional | Custom JSON metadata string |
tasks | array | Optional | Replacement task list (same schema as Create Job) |
{
"jobName": "Updated Delivery Job",
"jobStatus": 2,
"jobDescription": "Updated delivery instructions"
}Example
Request
curl -X PUT \
"https://live.fleetwork.vn/api/v1/workspace/jobs/3fa85f64-5717-4562-b3fc-2c963f66afa6" \
-H "API-KEY: <your-key>" \
-H "Content-Type: application/json" \
-d '{"jobName":"Updated Delivery Job","jobDescription":"Afternoon delivery run","jobStatus":2}'Response
{
"code": "OK",
"message": null,
"data": true
}