Attach location to holiday
POST/api/holidays/{holiday_id}/locations/{location_id}
This endpoint allows you to attach a location to a holiday.
Required permissions:
- settings.company: allows to manage location holidays.
Here the dedicated support page.
Request
Path Parameters
Possible values: Value must match regular expression [0-9]+
The ID of the holiday
Possible values: Value must match regular expression [0-9]+
The ID of the location to attach to the holiday
Header Parameters
The company you want to interact with
The API version you want to use
Responses
- 200
- 401
- 403
- 404
- 412
Location successfully attached to holiday
- application/json
- Schema
- Example (from schema)
Schema
Possible values: >= 1
The unique identifier of the resource
The date and time when the resource was created
The date and time when the resource was last updated
Possible values: >= 1
The ID of the holiday
Possible values: >= 1
The ID of the location
The date and time when the resource was deleted
{
"id": 1,
"created_at": "2026-03-13T17:09:41.383Z",
"updated_at": "2026-03-13T17:09:41.383Z",
"holiday_id": 1,
"location_id": 1,
"deleted_at": "2026-03-13T17:09:41.383Z"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
Error unique key
Human-readable message describing the error
{
"key": "string",
"message": "string"
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Error unique key
Human-readable message describing the error
{
"key": "string",
"message": "string"
}
Not found
- application/json
- Schema
- Example (from schema)
Schema
Error unique key
Human-readable message describing the error
{
"key": "not_found",
"message": "string"
}
Precondition failed
- application/json
- Schema
- Example (from schema)
Schema
Error unique key
Human-readable message describing the error
{
"key": "precondition_failure",
"message": "string"
}