Saltar al contenido principal
PUT
/
v1
/
people
/
employees
/
{employeeReference}
/
schedule
/
localCalendar
Assign local calendar to employee
curl --request PUT \
  --url https://api.bold-factory.com/v1/people/employees/{employeeReference}/schedule/localCalendar \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "localCalendarId": "<string>"
}
'
{
  "id": "<string>",
  "shiftSchedule": {
    "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"
  },
  "shiftScheduleId": "<string>",
  "shiftScheduleStartDate": "2023-12-25",
  "localCalendar": {
    "id": "<string>",
    "name": "<string>",
    "description": "<string>",
    "createdBy": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "lastModifiedBy": "<string>",
    "lastModifiedAt": "2023-11-07T05:31:56Z"
  },
  "localCalendarId": "<string>",
  "timeZoneId": "<string>",
  "createdBy": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "lastModifiedBy": "<string>",
  "lastModifiedAt": "2023-11-07T05:31:56Z",
  "deletedAt": "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

employeeReference
string
requerido

Cuerpo

application/json
localCalendarId
string
requerido

Respuesta

OK

id
string
requerido
shiftSchedule
object
requerido
shiftScheduleId
null | string
requerido
shiftScheduleStartDate
null | string<date>
requerido
localCalendar
object
requerido
localCalendarId
null | string
requerido
timeZoneId
string
requerido
createdBy
string
requerido
createdAt
string<date-time>
requerido
lastModifiedBy
string
requerido
lastModifiedAt
string<date-time>
requerido
deletedAt
null | string<date-time>
requerido