Saltar al contenido principal
PUT
/
v1
/
people
/
shiftSchedules
/
{shiftScheduleReference}
Update a shift schedule
curl --request PUT \
  --url https://api.bold-factory.com/v1/people/shiftSchedules/{shiftScheduleReference} \
  --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}'

Parámetros de ruta

shiftScheduleReference
string
requerido

Cuerpo

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

Respuesta

OK

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