Assign a work order to a batch
This function allows you to assign a work order to a batch.
Input Parameters
Parameter | Type | Description |
---|---|---|
Id MANDATORY FIELD | Integer | Work order id |
Output Parameters
Operation code.
Error codes
Code | Description |
---|---|
1000 | Generic error |
18000 | Unknown batch |
18001 | Missing mandatory fields |
18002 | Error assigning the work order to batch |
18003 | Unknown work order |
18004 | Work order already assigned to a batch |
Examples
Call (POST method)
JSON
https://server:8443/calibry-rest-api/rest/cif/batch/{batch_id}/assignworkorder
https://server:8443/calibry-rest-api/rest/cif/batch/137/assignworkorder
Headers:
Authorization
Content-Type = application/json
Body:
{
"id":"3456",
}
Responses
OK:
JSON
{0}
Error:
JSON
{"code":"18004"}