Update Work Order Statuses
POST/organizations/:organizationId/work-orders/:workOrderId/statuses
Update Work Order Statuses
Request
Path Parameters
organizationId stringrequired
The ID of organization.
workOrderId stringrequired
The ID of organization.
- application/json
Body
required
originalStartDate numberrequired
The original start date in milliseconds since epoch.
originalEndDate numberrequired
The original end date in milliseconds since epoch.
startDate numberrequired
The start date in milliseconds since epoch.
endDate numberrequired
The end date in milliseconds since epoch.
status stringrequired
The status of the work order (OnHold, InProgress, Completed).
triggerType stringrequired
The trigger type for the status update (manual, automatic).
Responses
- 200
- 401
- 403
- 422
- application/json
- Schema
- Example (from schema)
- Example
Schema
- Array [
- ]
data object[]required
Data of the work order.
id stringrequired
workOrderId stringrequired
organizationId stringrequired
manualId stringrequired
status stringrequired
triggerType stringrequired
createdBy stringrequired
createdAtDateString stringrequired
createdAt numberrequired
{
"data": [
{
"id": "string",
"workOrderId": "string",
"organizationId": "string",
"manualId": "string",
"status": "string",
"triggerType": "string",
"createdBy": "string",
"createdAtDateString": "string",
"createdAt": 0
}
]
}
{
"data": [
{
"id": "wo-workOrderId",
"workOrderId": "wo-workOrderId",
"organizationId": "o-organizationId",
"manualId": "uuid",
"status": "InProgress",
"triggerType": "manual",
"createdBy": "d6b0e137-xxxx-xxxx-xxxx-c944cc12a5f4",
"createdAtDateString": "2024-01-01T00:00:00.000Z",
"createdAt": 1704067200000
},
{
"id": "wo-workOrderId",
"workOrderId": "wo-workOrderId",
"organizationId": "o-organizationId",
"manualId": "uuid",
"status": "OnHold",
"triggerType": "manual",
"createdBy": "d6b0e137-xxxx-xxxx-xxxx-c944cc12a5f4",
"createdAtDateString": "2024-01-01T00:00:00.000Z",
"createdAt": 1704067200000
}
]
}
The request has not permission.
- application/json
- Schema
- Example (from schema)
- Example
Schema
error stringrequired
The request has not permission.
message stringrequired
The request has not permission message.
{
"error": "string",
"message": "string"
}
{
"error": "Unauthenticated",
"message": "Authentication is required and has failed or has not yet been provided."
}
The request has not permission.
- application/json
- Schema
- Example (from schema)
- Example
Schema
error stringrequired
The request has not permission.
message stringrequired
The request has not permission message.
{
"error": "string",
"message": "string"
}
{
"error": "Forbidden",
"message": "Access to the requested resource is forbidden."
}
The input data has invalid.
- application/json
- Schema
- Example (from schema)
- Example
Schema
error stringrequired
The input data has invalid.
message stringrequired
The input data has invalid message.
{
"error": "string",
"message": "string"
}
{
"error": "ValidationError",
"message": "Input data validation failed."
}
Loading...