Global holidays
Retrieve a collection of global holidays.
Authorizations
Path parameters
idall ofRequired
The unique ID of user.
stringOptionalExample:
The unique ID of the resource.
NzAwNTUxOTA5NzczMTQ4MTYw
Responses
200
OK
application/json
4XX
Error
get
GET /api/users/{id}/global_holidays HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"items": [
{
"id": "NzAwNTUxOTA5NzczMTQ4MTYw",
"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
}
]
}
Update global holidays from tenant holidays.
Authorizations
Path parameters
idall ofRequired
The unique ID of user.
stringOptionalExample:
The unique ID of the resource.
NzAwNTUxOTA5NzczMTQ4MTYw
Body
Responses
201
Created
application/json
4XX
Error
post
POST /api/users/{id}/global_holidays HTTP/1.1
Host: hostname:8887
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 38
{
"items": [
"NzAwNTUxOTA5NzczMTQ4MTYw"
]
}
{
"id": "NzAwNTUxOTA5NzczMTQ4MTYw"
}