API ReferenceDowntime
Create a downtime reason code
Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
factoryId*string
Factory slug
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
curl -X POST "https://api.xentr.ai/api/factories/string/downtime/reasons" \ -H "Content-Type: application/json" \ -d '{ "code": "MFAIL", "name": "Machine failure" }'Empty