API DocumentationManufacturer production schedule

Get the current production plan

GET
/api/manufacturer/v1/schedule

Returns the latest stored plan: a bar per stretch of work, the resources they sit on, and a ranked forecast per work order. The plan is recomputed in the background whenever the shop floor changes; revision goes up each time and pending is true while a newer plan is on its way.

Authorization

Phasio API Bearer Token
headerAuthorizationBearer <token>

Response Body

Plan successfully retrieved

application/json
  1. response
revision*integer
Formatint64
plannedAt*string
Formatdate-time
madeAt*string
Formatdate-time
timeZone*string
solverStatus*string
pending*boolean
warnings*array<>
resources*array<>
bars*array<>
workOrders*array<>
changeovers*array<>
curl -X GET 'https://m-api.eu.phas.io/api/manufacturer/v1/schedule'
{  "revision": 0,  "plannedAt": "2019-08-24T14:15:22Z",  "madeAt": "2019-08-24T14:15:22Z",  "timeZone": "string",  "solverStatus": "string",  "pending": true,  "warnings": [    {      "type": "REQUIREMENT_UNSATISFIABLE",      "operationId": "3051932a-fdd2-48fa-b330-7e7d41535969"    }  ],  "resources": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "groupId": "string"    }  ],  "bars": [    {      "itemId": "string",      "operationId": "3051932a-fdd2-48fa-b330-7e7d41535969",      "operationName": "string",      "operationSequence": 0,      "workOrderIds": [        "bda1f523-925e-485f-8a30-9b80cce3e701"      ],      "quantity": 0,      "workOrderQuantities": {        "property1": 0,        "property2": 0      },      "buildId": "9acffacc-3c88-4625-8d9b-098cc7052bf9",      "stepId": "50e29fb7-490e-4a88-b2f4-2fde4d70423d",      "startAt": "2019-08-24T14:15:22Z",      "endAt": "2019-08-24T14:15:22Z",      "resourceIds": [        "195224a6-1e4c-49ac-860d-ffd7b0578a56"      ],      "groupId": "string",      "committed": true,      "expectedEndAt": "2019-08-24T14:15:22Z",      "coarse": true,      "batchFill": 0.1,      "parked": true    }  ],  "workOrders": [    {      "workOrderId": "50150040-5a5c-4c26-9d75-30728d69a42e",      "workOrderNumber": 0,      "orderId": 0,      "orderNumber": 0,      "customerName": "string",      "partName": "string",      "quantity": 0,      "priority": 0,      "rank": 0,      "startAt": "2019-08-24T14:15:22Z",      "completionAt": "2019-08-24T14:15:22Z",      "dueAt": "2019-08-24T14:15:22Z",      "tardinessMinutes": 0,      "parked": true,      "partRevisionId": "d6aa80a1-8f9a-4090-941a-f51f551521b8",      "requisitionId": 0,      "quoteNumber": 0,      "routing": [        {          "operationId": "3051932a-fdd2-48fa-b330-7e7d41535969",          "operationName": "string",          "state": "DONE"        }      ],      "scenarioKey": "string"    }  ],  "changeovers": [    {      "resourceId": "026d60bb-63a8-407e-bf67-01dcfc6022e6",      "from": {        "materialId": 0,        "colorId": 0,        "sheetThickness": 0      },      "to": {        "materialId": 0,        "colorId": 0,        "sheetThickness": 0      },      "startAt": "2019-08-24T14:15:22Z",      "endAt": "2019-08-24T14:15:22Z"    }  ]}