Global holidays

List current user's global holidays

Retrieve a collection of current user's global holidays.

get

/user/global_holidays

Authorizations
Responses
curl -L \
  --url 'https://HOSTNAME:8887/api/user/global_holidays' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "items": [
    {
      "name": "text",
      "region": "text",
      "consecutive": true,
      "every_year": true,
      "year_start": 1,
      "year_end": 1,
      "month_start": 1,
      "month_end": 1,
      "day_start": 1,
      "day_end": 1,
      "hour_start": 1,
      "hour_end": 1,
      "minute_start": 1,
      "minute_end": 1,
      "id": "NzAwNTUxOTA5NzczMTQ4MTYw"
    }
  ]
}

Update current user's global holidays

Update current user's global holidays from tenant holidays.

post

/user/global_holidays

Authorizations
Body
itemsall of[]

The unique ID of holiday.

Responses
curl -L \
  --request POST \
  --url 'https://HOSTNAME:8887/api/user/global_holidays' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
    "items": [
      "NzAwNTUxOTA5NzczMTQ4MTYw"
    ]
  }'
{
  "id": "NzAwNTUxOTA5NzczMTQ4MTYw"
}

Was this helpful?