Download OpenAPI specification:Download
A service for the creation and management of work orders.
Security Scheme Type | OAuth2 |
---|---|
implicit OAuth Flow | Authorization URL: Scopes:
|
Security Scheme Type | OAuth2 |
---|---|
authorizationCode OAuth Flow | Authorization URL: Token URL: Scopes:
|
Security Scheme Type | OAuth2 |
---|---|
clientCredentials OAuth Flow | Token URL: Scopes:
|
Security Scheme Type | OAuth2 |
---|---|
password OAuth Flow | Token URL: Scopes:
|
workOrderId required | integer <int64> Id of the work order resource |
page | integer <int32> [ 0 .. 2147483647 ] Page number to return (0...N). |
size | integer <int32> [ 1 .. 2147483647 ] Number of resources to return per page. |
{- "content": [
- {
- "id": 0,
- "segmentActualId": 0,
- "operator": "string",
- "laborTypeId": 0,
- "clockOnTime": "2019-08-24T14:15:22Z",
- "clockOnBy": "string",
- "clockOffTime": "2019-08-24T14:15:22Z",
- "clockOffBy": "string"
}
], - "page": {
- "number": 0,
- "size": 0,
- "totalElements": 0,
- "totalPages": 0
}
}
workOrderId required | integer <int64> Id of the work order resource |
clockOnRecordId required | integer <int64> Id of the clock on record resource |
{- "id": 0,
- "segmentActualId": 0,
- "operator": "string",
- "laborTypeId": 0,
- "clockOnTime": "2019-08-24T14:15:22Z",
- "clockOnBy": "string",
- "clockOffTime": "2019-08-24T14:15:22Z",
- "clockOffBy": "string"
}
workOrderId required | integer <int64> Id of the work order resource |
page | integer <int32> [ 0 .. 2147483647 ] Page number to return (0...N). |
size | integer <int32> [ 1 .. 2147483647 ] Number of resources to return per page. |
{- "content": [
- {
- "id": 0,
- "segmentActualId": 0,
- "quantity": 0,
- "quantityCompletedBy": "string",
- "quantityCompletedTime": "2019-08-24T14:15:22Z"
}
], - "page": {
- "number": 0,
- "size": 0,
- "totalElements": 0,
- "totalPages": 0
}
}
workOrderId required | integer <int64> Id of the work order resource |
completeQuantityRecordId required | integer <int64> Id of the complete quantity record resource |
{- "id": 0,
- "segmentActualId": 0,
- "quantity": 0,
- "quantityCompletedBy": "string",
- "quantityCompletedTime": "2019-08-24T14:15:22Z"
}
workOrderId required | integer <int64> Id of the work order resource |
page | integer <int32> [ 0 .. 2147483647 ] Page number to return (0...N). |
size | integer <int32> [ 1 .. 2147483647 ] Number of resources to return per page. |
{- "content": [
- {
- "id": 0,
- "materialLotActualIds": [
- 0
], - "segmentIds": [
- 0
], - "reasonDescription": "string",
- "active": true,
- "holdType": "Lot",
- "holdCreatedBy": "string",
- "holdCreatedTime": "2019-08-24T14:15:22Z",
- "holdReleasedBy": "string",
- "holdReleasedTime": "2019-08-24T14:15:22Z"
}
], - "page": {
- "number": 0,
- "size": 0,
- "totalElements": 0,
- "totalPages": 0
}
}
workOrderId required | integer <int64> Id of the work order resource |
holdRecordId required | integer <int64> Id of the hold record resource |
{- "id": 0,
- "materialLotActualIds": [
- 0
], - "segmentIds": [
- 0
], - "reasonDescription": "string",
- "active": true,
- "holdType": "Lot",
- "holdCreatedBy": "string",
- "holdCreatedTime": "2019-08-24T14:15:22Z",
- "holdReleasedBy": "string",
- "holdReleasedTime": "2019-08-24T14:15:22Z"
}
workOrderId required | integer <int64> Id of the work order resource |
parentMaterialLotActualId | integer <int64> ID for the parent material lot actual as a filter. |
page | integer <int32> [ 0 .. 2147483647 ] Page number to return (0...N). |
size | integer <int32> [ 1 .. 2147483647 ] Number of resources to return per page. |
{- "content": [
- {
- "id": 0,
- "parentIds": [
- 0
], - "workOrderId": 0,
- "lotIdentifier": "string",
- "status": "string",
- "onHold": true,
- "plannedQuantity": 0,
- "initialPlannedQuantity": 0,
- "productionEventId": 0,
- "createdOn": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "cancelledOn": "2019-08-24T14:15:22Z",
- "cancelledBy": "string"
}
], - "page": {
- "number": 0,
- "size": 0,
- "totalElements": 0,
- "totalPages": 0
}
}
workOrderId required | integer <int64> Id of the work order resource |
materialLotActualId required | integer <int64> Id of the material lot actual resource |
{- "id": 0,
- "parentIds": [
- 0
], - "workOrderId": 0,
- "lotIdentifier": "string",
- "status": "string",
- "onHold": true,
- "plannedQuantity": 0,
- "initialPlannedQuantity": 0,
- "productionEventId": 0,
- "createdOn": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "cancelledOn": "2019-08-24T14:15:22Z",
- "cancelledBy": "string"
}
clockedOnOperator | string Currently clocked on operator as a filter. |
materialLotActualId | integer <int64> ID of the material lot actual as a filter. |
lotIdentifier | string Lot identifier (e.g. Serial Number) as a filter. |
operationName | string Name of the operation as a filter. Note that operation names are unique only within a segment definition and not across segment definitions. |
plannedUnitId | Array of integers <int64> ID for the planned unit as a filter. The results contain all operations that have the ID in the planned unit set. The planned unit set is specified in the segment definition. Multiple values are supported and the result contains all the operations matching any of the values. |
plannedOrStartedOnUnitId | Array of integers <int64> ID for the unit that the operation is executing on OR planned to execute on if the operation is not started as a filter. Multiple values are supported and the result contains all the operations matching any of the values. |
producedMaterialId | Array of integers <int64> ID for the material produced as a filter. The material produced is defined by the segments definition for the work order. Multiple values are supported and the result contains all the operations matching any of the values. |
productionLineId | Array of integers <int64> ID for the production line as a filter. Multiple values are supported and the result contains all the operations matching any of the values. |
workOrderPriority | integer <int32> Relative priority of the work order as a filter. |
segmentId | integer <int64> ID for the segment as a filter. Note that segment IDs are unique only within a segment definition and not across segment definitions. |
segmentActualId | Array of integers <int64> ID for the segment actual as a filter. Multiple values are supported and the results contain all operations matching any of the values. |
startedOnUnitId | Array of integers <int64> ID for the unit that the segment is executing on as a filter. Multiple values are supported and the result contains all the operations matching any of the values. |
status | Array of strings Items Enum: "NotReady" "Ready" "InProgress" "Complete" "Cancelled" "Skipped" Status of the operation as a filter. Multiple values are supported and the results contain all operations matching any of the values. |
completedAfter | string <date-time> Filter results to return operations completed on or after this time. Combines with CompletedBefore to define a time range. |
completedBefore | string <date-time> Filter results to return operations completed on or before this time. Combines with CompletedAfter to define a time range. |
workOrderId | integer <int64> ID for the work order as a filter. |
workOrderName | string Name of the work order as a filter. |
onHold | boolean Whether the operation is currently on hold as a filter. If set to true, query will only return operations with active hold records |
orderBy | string Enum: "SegmentActualId" "MaterialLotActualId" "LotIdentifier" "OperationName" "ProducedMaterialId" "SegmentId" "StartedOnUnitId" "WorkOrderId" "WorkOrderName" "WorkOrderPriority" "ReadyOn" "StartedOn" "CompletedOn" "SegmentActualIdDescending" "MaterialLotActualIdDescending" "LotIdentifierDescending" "OperationNameDescending" "ProducedMaterialIdDescending" "SegmentIdDescending" "StartedOnUnitIdDescending" "WorkOrderIdDescending" "WorkOrderNameDescending" "WorkOrderPriorityDescending" "ReadyOnDescending" "StartedOnDescending" "CompletedOnDescending" Name of the operation property to sort the results by. |
page | integer <int32> [ 0 .. 2147483647 ] Page number to return (0...N). |
size | integer <int32> [ 1 .. 2147483647 ] Number of resources to return per page. |
{- "content": [
- {
- "operationName": "string",
- "operationDescription": "string",
- "segmentActualId": 0,
- "segmentId": 0,
- "materialLotActualId": 0,
- "lotIdentifier": "string",
- "workOrderId": 0,
- "workOrderName": "string",
- "producedMaterialId": 0,
- "productionLineId": 0,
- "workOrderPriority": 0,
- "status": "string",
- "plannedUnitIds": [
- 0
], - "startedOnUnitId": 0,
- "onHold": true,
- "readyOn": "2019-08-24T14:15:22Z",
- "startedOn": "2019-08-24T14:15:22Z",
- "startedBy": "string",
- "completedOn": "2019-08-24T14:15:22Z",
- "completedBy": "string",
- "lotPlannedQuantity": 0,
- "lotInitialPlannedQuantity": 0,
- "completedQuantity": 0
}
], - "page": {
- "number": 0,
- "size": 0,
- "totalElements": 0,
- "totalPages": 0
}
}
workOrderId required | integer <int64> Id of the work order resource |
page | integer <int32> [ 0 .. 2147483647 ] Page number to return (0...N). |
size | integer <int32> [ 1 .. 2147483647 ] Number of resources to return per page. |
{- "content": [
- {
- "id": 0,
- "segmentId": 0,
- "materialLotActualId": 0,
- "workOrderId": 0,
- "status": "string",
- "startedOnUnitId": 0,
- "onHold": true,
- "readyOn": "2019-08-24T14:15:22Z",
- "startedOn": "2019-08-24T14:15:22Z",
- "startedBy": "string",
- "completedOn": "2019-08-24T14:15:22Z",
- "completedBy": "string",
- "productionEventId": 0,
- "userDefinedEventId": 0
}
], - "page": {
- "number": 0,
- "size": 0,
- "totalElements": 0,
- "totalPages": 0
}
}
workOrderId required | integer <int64> Id of the work order resource |
segmentActualId required | integer <int64> Id of the segment actual resource |
{- "id": 0,
- "segmentId": 0,
- "materialLotActualId": 0,
- "workOrderId": 0,
- "status": "string",
- "startedOnUnitId": 0,
- "onHold": true,
- "readyOn": "2019-08-24T14:15:22Z",
- "startedOn": "2019-08-24T14:15:22Z",
- "startedBy": "string",
- "completedOn": "2019-08-24T14:15:22Z",
- "completedBy": "string",
- "productionEventId": 0,
- "userDefinedEventId": 0
}
mes.workorders.editsegments
) Client_Credentials (mes.workorders.editsegments
) Resource_Owner_Password_Credentials (mes.workorders.editsegments
) Implicit (mes.workorders.editsegments
) OnBehalfOfClient_Credentials (mes.workorders.editsegments
) workOrderId required | integer <int64> Id of the work order resource |
if-Match | string Expected segments resource ETag value |
Segments definition
null
null
mes.workorders.editsegments
) Client_Credentials (mes.workorders.editsegments
) Resource_Owner_Password_Credentials (mes.workorders.editsegments
) Implicit (mes.workorders.editsegments
) OnBehalfOfClient_Credentials (mes.workorders.editsegments
) workOrderId required | integer <int64> Id of the work order resource |
if-Match required | string Expected segments resource ETag value |
Segments definition patch
value | any |
path | string |
op | string |
from | string |
[- {
- "value": null,
- "path": "string",
- "op": "string",
- "from": "string"
}
]
null
Creates a JSON patch that can be applied to a segments definition to add a rework operation to a work order. The rework operation is a copy of an existing complete or in-progress operation with the following changes:
The rework operation will be sequenced in parallel with the current ready or in-progress operation(s).
Entry containing the details for the rework operation to be created
workOrderId required | integer <int64> The ID of the work order to rework. |
materialLotActualIds required | Array of integers <int64> [ 1 .. 50 ] items The IDs of the material lot actuals to create a rework operation on. |
segmentId required | integer <int64> The ID of the segment to base the rework operation on. The description, property values, planned unit IDs, and documents will be copied from this segment. |
operationName required | string [ 1 .. 100 ] characters The name of the rework operation to create. |
{- "workOrderId": 0,
- "materialLotActualIds": [
- 0
], - "segmentId": 0,
- "operationName": "string"
}
{- "patch": [
- {
- "value": null,
- "path": "string",
- "op": "string",
- "from": "string"
}
], - "eTagValue": "string"
}
mes.workorders.execute
) Client_Credentials (mes.workorders.execute
) Resource_Owner_Password_Credentials (mes.workorders.execute
) Implicit (mes.workorders.execute
) OnBehalfOfClient_Credentials (mes.workorders.execute
) workOrderId required | integer <int64> Id of the work order resource |
Start command details
segmentActualId | integer <int64> The ID of the segment actual to start. |
unitId | integer <int64> The ID of the unit to start the segment on. |
[- {
- "segmentActualId": 0,
- "unitId": 0
}
]
{- "timestamp": "2019-08-24T14:15:22Z",
- "path": "string",
- "error": {
- "details": {
- "property1": null,
- "property2": null
}, - "code": "string"
}
}
mes.workorders.execute
) Client_Credentials (mes.workorders.execute
) Resource_Owner_Password_Credentials (mes.workorders.execute
) Implicit (mes.workorders.execute
) OnBehalfOfClient_Credentials (mes.workorders.execute
) workOrderId required | integer <int64> Id of the work order resource |
Segment actuals and labor types to clock on
segmentActualId required | integer <int64> >= 1 The ID of the segment actual to clock on. |
laborTypeId required | integer <int64> Labor Type to clock on for the segment actual. |
[- {
- "segmentActualId": 1,
- "laborTypeId": 0
}
]
{- "timestamp": "2019-08-24T14:15:22Z",
- "path": "string",
- "error": {
- "details": {
- "property1": null,
- "property2": null
}, - "code": "string"
}
}
mes.workorders.execute
) Client_Credentials (mes.workorders.execute
) Resource_Owner_Password_Credentials (mes.workorders.execute
) Implicit (mes.workorders.execute
) OnBehalfOfClient_Credentials (mes.workorders.execute
) workOrderId required | integer <int64> Id of the work order resource |
Ids of the segment actuals to clock off
[- 0
]
{- "timestamp": "2019-08-24T14:15:22Z",
- "path": "string",
- "error": {
- "details": {
- "property1": null,
- "property2": null
}, - "code": "string"
}
}
mes.workorders.clockoffoperator
) Client_Credentials (mes.workorders.clockoffoperator
) Resource_Owner_Password_Credentials (mes.workorders.clockoffoperator
) Implicit (mes.workorders.clockoffoperator
) OnBehalfOfClient_Credentials (mes.workorders.clockoffoperator
) workOrderId required | integer <int64> Id of the work order resource |
Segment actuals and operators to clock off
segmentActualId required | integer <int64> >= 1 The ID of the segment actual to clock off. |
operatorName required | string Operator to clock off of the segment actual. May not be used when mode is AllOperators. |
[- {
- "segmentActualId": 1,
- "operatorName": "string"
}
]
{- "timestamp": "2019-08-24T14:15:22Z",
- "path": "string",
- "error": {
- "details": {
- "property1": null,
- "property2": null
}, - "code": "string"
}
}
mes.workorders.clockoffoperator
) Client_Credentials (mes.workorders.clockoffoperator
) Resource_Owner_Password_Credentials (mes.workorders.clockoffoperator
) Implicit (mes.workorders.clockoffoperator
) OnBehalfOfClient_Credentials (mes.workorders.clockoffoperator
) workOrderId required | integer <int64> Id of the work order resource |
Ids of the segment actuals to clock off all operators from
[- 0
]
{- "timestamp": "2019-08-24T14:15:22Z",
- "path": "string",
- "error": {
- "details": {
- "property1": null,
- "property2": null
}, - "code": "string"
}
}
mes.workorders.execute
) Client_Credentials (mes.workorders.execute
) Resource_Owner_Password_Credentials (mes.workorders.execute
) Implicit (mes.workorders.execute
) OnBehalfOfClient_Credentials (mes.workorders.execute
) workOrderId required | integer <int64> Work order containing segments to complete quantity on |
Specification of segments and quantities to complete
segmentActualId required | integer <int64> >= 1 The ID of the segment actual to clock on. |
quantity required | integer <int32> [ 1 .. 2147483647 ] Quantity to record for the segment actual. |
[- {
- "segmentActualId": 1,
- "quantity": 1
}
]
{- "timestamp": "2019-08-24T14:15:22Z",
- "path": "string",
- "error": {
- "details": {
- "property1": null,
- "property2": null
}, - "code": "string"
}
}
mes.workorders.execute
) Client_Credentials (mes.workorders.execute
) Resource_Owner_Password_Credentials (mes.workorders.execute
) Implicit (mes.workorders.execute
) OnBehalfOfClient_Credentials (mes.workorders.execute
) workOrderId required | integer <int64> Id of the work order resource |
Ids of segments to complete
[- 0
]
{- "timestamp": "2019-08-24T14:15:22Z",
- "path": "string",
- "error": {
- "details": {
- "property1": null,
- "property2": null
}, - "code": "string"
}
}
mes.workorders.skip
) Client_Credentials (mes.workorders.skip
) Resource_Owner_Password_Credentials (mes.workorders.skip
) Implicit (mes.workorders.skip
) OnBehalfOfClient_Credentials (mes.workorders.skip
) workOrderId required | integer <int64> Id of the work order resource |
Ids of segment actuals to skip
[- 0
]
{- "timestamp": "2019-08-24T14:15:22Z",
- "path": "string",
- "error": {
- "details": {
- "property1": null,
- "property2": null
}, - "code": "string"
}
}
workOrderId required | integer <int64> Id of the work order resource |
Hold command details
materialLotActualIds required | Array of integers <int64> [ 1 .. 50 ] items The IDs of the material lot actuals to create hold records on. |
holdType required | string Enum: "Lot" "Operation" Type of hold. If the type is "Lot", the hold is for an entire material lot. If the type is "Operation", the hold is for specific operations. |
segmentIds | Array of integers <int64> <= 50 items The IDs of the segments to create hold records on. Must be null/empty for a "Lot" hold. Must not be null/empty for a "Operation" hold. |
reasonDescription | string <= 150 characters A description of the reason the hold record is being created. |
[- {
- "materialLotActualIds": [
- 0
], - "holdType": "Lot",
- "segmentIds": [
- 0
], - "reasonDescription": "string"
}
]
[- {
- "id": 0,
- "materialLotActualIds": [
- 0
], - "segmentIds": [
- 0
], - "reasonDescription": "string",
- "active": true,
- "holdType": "Lot",
- "holdCreatedBy": "string",
- "holdCreatedTime": "2019-08-24T14:15:22Z",
- "holdReleasedBy": "string",
- "holdReleasedTime": "2019-08-24T14:15:22Z"
}
]
workOrderId required | integer <int64> Id of the work order resource |
Ids of the hold records to release
[- 0
]
[- {
- "id": 0,
- "materialLotActualIds": [
- 0
], - "segmentIds": [
- 0
], - "reasonDescription": "string",
- "active": true,
- "holdType": "Lot",
- "holdCreatedBy": "string",
- "holdCreatedTime": "2019-08-24T14:15:22Z",
- "holdReleasedBy": "string",
- "holdReleasedTime": "2019-08-24T14:15:22Z"
}
]
workOrderId required | integer <int64> Id of the work order resource |
Details of each material lot being scrapped
materialLotActualId | integer <int64> The ID of the material lot actual to be scrapped. |
reasonLevel1Id | integer <int32> Reason Level 1 Id. This is the 1st level reason used to categorize the waste. It is the Id of the corresponding reason which must already exist in Plant Apps. |
reasonLevel2Id | integer <int32> Reason Level 2 Id. This is the 2nd level reason used to categorize the waste. It is the Id of the corresponding reason which must already exist in Plant Apps. |
reasonLevel3Id | integer <int32> Reason Level 3 Id. This is the 3rd level reason used to categorize the waste. It is the Id of the corresponding reason which must already exist in Plant Apps. |
reasonLevel4Id | integer <int32> Reason Level 4 Id. This is the 4th level reason used to categorize the waste. It is the Id of the corresponding reason which must already exist in Plant Apps. |
[- {
- "materialLotActualId": 0,
- "reasonLevel1Id": 0,
- "reasonLevel2Id": 0,
- "reasonLevel3Id": 0,
- "reasonLevel4Id": 0
}
]
{- "timestamp": "2019-08-24T14:15:22Z",
- "path": "string",
- "error": {
- "details": {
- "property1": null,
- "property2": null
}, - "code": "string"
}
}
mes.workorders.cancel
) Client_Credentials (mes.workorders.cancel
) Resource_Owner_Password_Credentials (mes.workorders.cancel
) Implicit (mes.workorders.cancel
) OnBehalfOfClient_Credentials (mes.workorders.cancel
) workOrderId required | integer <int64> Id of the work order resource |
{- "timestamp": "2019-08-24T14:15:22Z",
- "path": "string",
- "error": {
- "details": {
- "property1": null,
- "property2": null
}, - "code": "string"
}
}
mes.workorders.manuallycompleteworkorder
) Client_Credentials (mes.workorders.manuallycompleteworkorder
) Resource_Owner_Password_Credentials (mes.workorders.manuallycompleteworkorder
) Implicit (mes.workorders.manuallycompleteworkorder
) OnBehalfOfClient_Credentials (mes.workorders.manuallycompleteworkorder
) workOrderId required | integer <int64> Id of the work order resource |
{- "id": 0,
- "name": "string",
- "routeDefinitionId": 0,
- "productionLineId": 0,
- "producedMaterialId": 0,
- "processOrderId": 0,
- "plannedQuantity": 0,
- "priority": 0,
- "plannedStartDate": "2019-08-24T14:15:22Z",
- "plannedEndDate": "2019-08-24T14:15:22Z",
- "status": "string",
- "createdOn": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "readyOn": "2019-08-24T14:15:22Z",
- "startedOn": "2019-08-24T14:15:22Z",
- "completedOn": "2019-08-24T14:15:22Z",
- "completedBy": "string",
- "cancelledOn": "2019-08-24T14:15:22Z",
- "lastModifiedOn": "2019-08-24T14:15:22Z",
- "lastModifiedBy": "string",
- "eTagValue": "string"
}
mes.workorders.updatelotidentifier
) Client_Credentials (mes.workorders.updatelotidentifier
) Resource_Owner_Password_Credentials (mes.workorders.updatelotidentifier
) Implicit (mes.workorders.updatelotidentifier
) OnBehalfOfClient_Credentials (mes.workorders.updatelotidentifier
) workOrderId required | integer <int64> Id of the work order resource |
Update lot identifiers command details
materialLotActualId | integer <int64> The ID of the material lot actual to update. |
lotIdentifier | string The new lot identifier. |
[- {
- "materialLotActualId": 0,
- "lotIdentifier": "string"
}
]
{- "timestamp": "2019-08-24T14:15:22Z",
- "path": "string",
- "error": {
- "details": {
- "property1": null,
- "property2": null
}, - "code": "string"
}
}
workOrderId required | integer <int64> Id of the work order resource |
Update lot planned quantity command details
materialLotActualId required | integer <int64> The ID of the material lot actual to update. |
plannedQuantity required | integer <int32> [ 1 .. 2147483647 ] The updated planned quantity to produce with this material lot. |
[- {
- "materialLotActualId": 0,
- "plannedQuantity": 1
}
]
{- "timestamp": "2019-08-24T14:15:22Z",
- "path": "string",
- "error": {
- "details": {
- "property1": null,
- "property2": null
}, - "code": "string"
}
}
workOrderId required | integer <int64> Id of the work order resource |
Split lot command details
materialLotActualId required | integer <int64> ID of the material lot actual to be split |
newLotIdentifier | string [ 0 .. 100 ] characters Optional new lot identifier name for the material lot being split. This allows using the existing lot identifier for one of the child lots. Set to null to keep existing lot identifier on the parent. |
required | Array of objects (SplitLotChildLotEntry) non-empty Child material lot details |
[- {
- "materialLotActualId": 0,
- "newLotIdentifier": "string",
- "childMaterialLots": [
- {
- "lotIdentifier": "string",
- "plannedQuantity": 1,
- "completedQuantities": [
- {
- "segmentId": 0,
- "completedQuantity": 0
}
]
}
]
}
]
[- {
- "id": 0,
- "parentIds": [
- 0
], - "workOrderId": 0,
- "lotIdentifier": "string",
- "status": "string",
- "onHold": true,
- "plannedQuantity": 0,
- "initialPlannedQuantity": 0,
- "productionEventId": 0,
- "createdOn": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "cancelledOn": "2019-08-24T14:15:22Z",
- "cancelledBy": "string"
}
]
mes.workorders.addmateriallot
) Client_Credentials (mes.workorders.addmateriallot
) Resource_Owner_Password_Credentials (mes.workorders.addmateriallot
) Implicit (mes.workorders.addmateriallot
) OnBehalfOfClient_Credentials (mes.workorders.addmateriallot
) workOrderId required | integer <int64> Id of the work order resource |
Add lot command details
lotIdentifier required | string Identifier for this material lot |
plannedQuantity required | integer <int32> [ 1 .. 2147483647 ] The planned quantity to produce with this material lot. |
[- {
- "lotIdentifier": "string",
- "plannedQuantity": 1
}
]
[- {
- "id": 0,
- "parentIds": [
- 0
], - "workOrderId": 0,
- "lotIdentifier": "string",
- "status": "string",
- "onHold": true,
- "plannedQuantity": 0,
- "initialPlannedQuantity": 0,
- "productionEventId": 0,
- "createdOn": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "cancelledOn": "2019-08-24T14:15:22Z",
- "cancelledBy": "string"
}
]
mes.workorders.cancelnotstartedmateriallot
) Client_Credentials (mes.workorders.cancelnotstartedmateriallot
) Resource_Owner_Password_Credentials (mes.workorders.cancelnotstartedmateriallot
) Implicit (mes.workorders.cancelnotstartedmateriallot
) OnBehalfOfClient_Credentials (mes.workorders.cancelnotstartedmateriallot
) workOrderId required | integer <int64> Id of the work order resource |
Ids of material lot actuals to cancel
[- 0
]
[- {
- "id": 0,
- "parentIds": [
- 0
], - "workOrderId": 0,
- "lotIdentifier": "string",
- "status": "string",
- "onHold": true,
- "plannedQuantity": 0,
- "initialPlannedQuantity": 0,
- "productionEventId": 0,
- "createdOn": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "cancelledOn": "2019-08-24T14:15:22Z",
- "cancelledBy": "string"
}
]
mes.workorders.create
) Client_Credentials (mes.workorders.create
) Resource_Owner_Password_Credentials (mes.workorders.create
) Implicit (mes.workorders.create
) OnBehalfOfClient_Credentials (mes.workorders.create
) Details on the work order to create.
Array of objects (MaterialLotEntry) Material lots to produce with this work order. | |
name required | string <= 50 characters Work Order name. |
producedMaterialId required | integer <int64> Work order produced material ID. |
productionLineId | integer <int64> Work order production line ID. |
routeDefinitionId | integer <int64> Refers to the route used to execute the work order. |
plannedQuantity | integer <int32> [ 0 .. 2147483647 ] The planned quantity to produce with this work order. |
priority | integer <int32> [ 0 .. 2147483647 ] Relative priority of the work order. |
plannedStartDate | string <date-time> Planned start date for the work order. |
plannedEndDate | string <date-time> Planned end date for the work order. |
{- "materialLots": [
- {
- "lotIdentifier": "string",
- "plannedQuantity": 1
}
], - "name": "string",
- "producedMaterialId": 0,
- "productionLineId": 0,
- "routeDefinitionId": 0,
- "plannedQuantity": 0,
- "priority": 0,
- "plannedStartDate": "2019-08-24T14:15:22Z",
- "plannedEndDate": "2019-08-24T14:15:22Z"
}
{- "id": 0,
- "name": "string",
- "routeDefinitionId": 0,
- "productionLineId": 0,
- "producedMaterialId": 0,
- "processOrderId": 0,
- "plannedQuantity": 0,
- "priority": 0,
- "plannedStartDate": "2019-08-24T14:15:22Z",
- "plannedEndDate": "2019-08-24T14:15:22Z",
- "status": "string",
- "createdOn": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "readyOn": "2019-08-24T14:15:22Z",
- "startedOn": "2019-08-24T14:15:22Z",
- "completedOn": "2019-08-24T14:15:22Z",
- "completedBy": "string",
- "cancelledOn": "2019-08-24T14:15:22Z",
- "lastModifiedOn": "2019-08-24T14:15:22Z",
- "lastModifiedBy": "string",
- "eTagValue": "string"
}
productionLineId | Array of integers <int64> Production line ID as a filter. Multiple values are supported and the result contains all the work orders matching any of the values |
producedMaterialId | Array of integers <int64> Produced material ID as a filter. Multiple values are supported and the result contains all the work orders matching any of the values |
processOrderId | Array of integers <int64> Process order ID as a filter. Multiple values are supported and the result contains all the work orders matching any of the values |
name | string Name of the work order as a filter. |
status | Array of strings Items Enum: "NotReady" "Ready" "InProgress" "Complete" "Cancelled" Status of the work order as a filter. Multiple values are supported and the results contain all work orders matching any of the values. |
priority | integer <int32> Priority value as a filter. |
completedAfter | string <date-time> Filter results to return work orders completed on or after this time. Combines with CompletedBefore to define a time range. |
completedBefore | string <date-time> Filter results to return work orders completed on or before this time. Combines with CompletedAfter to define a time range. |
producedLotIdentifier | Array of strings Produced lot identifier as a filter. Multiple values are supported and the result contains all the work orders matching any of the values |
orderBy | string Enum: "Name" "PlannedStartDate" "Priority" "CompletedOn" "CompletedOnDescending" Controls how the work order results are ordered. |
page | integer <int32> [ 0 .. 2147483647 ] Page number to return (0...N). |
size | integer <int32> [ 1 .. 2147483647 ] Number of resources to return per page. |
{- "content": [
- {
- "id": 0,
- "name": "string",
- "routeDefinitionId": 0,
- "productionLineId": 0,
- "producedMaterialId": 0,
- "processOrderId": 0,
- "plannedQuantity": 0,
- "priority": 0,
- "plannedStartDate": "2019-08-24T14:15:22Z",
- "plannedEndDate": "2019-08-24T14:15:22Z",
- "status": "string",
- "createdOn": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "readyOn": "2019-08-24T14:15:22Z",
- "startedOn": "2019-08-24T14:15:22Z",
- "completedOn": "2019-08-24T14:15:22Z",
- "completedBy": "string",
- "cancelledOn": "2019-08-24T14:15:22Z",
- "lastModifiedOn": "2019-08-24T14:15:22Z",
- "lastModifiedBy": "string",
- "eTagValue": "string"
}
], - "page": {
- "number": 0,
- "size": 0,
- "totalElements": 0,
- "totalPages": 0
}
}
workOrderId required | integer <int64> ID of the work order to delete. |
{- "timestamp": "2019-08-24T14:15:22Z",
- "path": "string",
- "error": {
- "details": {
- "property1": null,
- "property2": null
}, - "code": "string"
}
}
workOrderId required | integer <int64> Id of the work order resource |
{- "id": 0,
- "name": "string",
- "routeDefinitionId": 0,
- "productionLineId": 0,
- "producedMaterialId": 0,
- "processOrderId": 0,
- "plannedQuantity": 0,
- "priority": 0,
- "plannedStartDate": "2019-08-24T14:15:22Z",
- "plannedEndDate": "2019-08-24T14:15:22Z",
- "status": "string",
- "createdOn": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "readyOn": "2019-08-24T14:15:22Z",
- "startedOn": "2019-08-24T14:15:22Z",
- "completedOn": "2019-08-24T14:15:22Z",
- "completedBy": "string",
- "cancelledOn": "2019-08-24T14:15:22Z",
- "lastModifiedOn": "2019-08-24T14:15:22Z",
- "lastModifiedBy": "string",
- "eTagValue": "string"
}
mes.workorders.update
) Client_Credentials (mes.workorders.update
) Resource_Owner_Password_Credentials (mes.workorders.update
) Implicit (mes.workorders.update
) OnBehalfOfClient_Credentials (mes.workorders.update
) workOrderId required | integer <int64> ID of the work order to update. |
if-Match required | string Expected work order resource ETag value |
Details on the work order to update.
productionLineId required | integer <int64> Work order production line ID. |
plannedQuantity required | integer <int32> The planned quantity to produce with this work order. |
name required | string <= 50 characters Work Order name. |
producedMaterialId required | integer <int64> Work order produced material ID. |
routeDefinitionId | integer <int64> Refers to the route used to execute the work order. |
priority | integer <int32> [ 0 .. 2147483647 ] Relative priority of the work order. |
plannedStartDate | string <date-time> Planned start date for the work order. |
plannedEndDate | string <date-time> Planned end date for the work order. |
{- "productionLineId": 0,
- "plannedQuantity": 0,
- "name": "string",
- "producedMaterialId": 0,
- "routeDefinitionId": 0,
- "priority": 0,
- "plannedStartDate": "2019-08-24T14:15:22Z",
- "plannedEndDate": "2019-08-24T14:15:22Z"
}
{- "id": 0,
- "name": "string",
- "routeDefinitionId": 0,
- "productionLineId": 0,
- "producedMaterialId": 0,
- "processOrderId": 0,
- "plannedQuantity": 0,
- "priority": 0,
- "plannedStartDate": "2019-08-24T14:15:22Z",
- "plannedEndDate": "2019-08-24T14:15:22Z",
- "status": "string",
- "createdOn": "2019-08-24T14:15:22Z",
- "createdBy": "string",
- "readyOn": "2019-08-24T14:15:22Z",
- "startedOn": "2019-08-24T14:15:22Z",
- "completedOn": "2019-08-24T14:15:22Z",
- "completedBy": "string",
- "cancelledOn": "2019-08-24T14:15:22Z",
- "lastModifiedOn": "2019-08-24T14:15:22Z",
- "lastModifiedBy": "string",
- "eTagValue": "string"
}