Was this helpful?
Retrieve a collection of global holidays.
/users/{id}/global_holidays
The unique ID of user.
The unique ID of the resource.
curl -L \ --url 'https://HOSTNAME:8887/api/users/{id}/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 global holidays from tenant holidays.
The unique ID of holiday.
curl -L \ --request POST \ --url 'https://HOSTNAME:8887/api/users/{id}/global_holidays' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \ --header 'Content-Type: application/json' \ --data '{ "items": [ "NzAwNTUxOTA5NzczMTQ4MTYw" ] }'
{ "id": "NzAwNTUxOTA5NzczMTQ4MTYw" }