API ReferenceShifts
Create a new shift for a factory
Authorization
bearer AuthorizationBearer <token>
In: header
Path Parameters
factoryId*string
Factory ID
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/shifts" \ -H "Content-Type: application/json" \ -d '{ "name": "Morning", "startTime": "07:00", "endTime": "15:00", "daysOfWeek": [ 1, 2, 3, 4, 5 ] }'Empty