Saltar al contenido principal
POST
/
v1
/
people
/
shiftSchedules
Create a new shift schedule
curl --request POST \
  --url https://api.bold-factory.com/v1/people/shiftSchedules \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "segments": [
    {
      "workDayTemplateId": "<string>",
      "durationDays": 123
    }
  ]
}
'
{
  "id": "<string>",
  "name": "<string>",
  "description": "<string>",
  "segments": [
    {
      "workDayTemplateId": "<string>",
      "workDayTemplate": {
        "id": "<string>",
        "name": "<string>",
        "periods": [
          {
            "startTime": "<string>",
            "endTime": "<string>",
            "endNextDay": true,
            "hours": 123
          }
        ],
        "totalHours": 123,
        "createdBy": "<string>",
        "createdAt": "2023-11-07T05:31:56Z",
        "lastModifiedBy": "<string>",
        "lastModifiedAt": "2023-11-07T05:31:56Z"
      },
      "durationDays": 123
    }
  ],
  "createdBy": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "lastModifiedBy": "<string>",
  "lastModifiedAt": "2023-11-07T05:31:56Z"
}

Autorizaciones

Authorization
string
header
requerido

Use a valid JWT token in the Authorization header with the format 'Bearer {token}'

Cuerpo

application/json
name
string
requerido
description
string
requerido
segments
object[]
requerido

Respuesta

Created

id
string
requerido
name
string
requerido
description
string
requerido
segments
object[]
requerido
createdBy
string
requerido
createdAt
string<date-time>
requerido
lastModifiedBy
string
requerido
lastModifiedAt
string<date-time>
requerido