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
holiday_id stringrequired
Possible values: Value must match regular expression [0-9]+
The ID of the holiday to attach the location to
location_id stringrequired
Possible values: Value must match regular expression [0-9]+
The ID of the location to attach to the holiday
Header Parameters
Wethod-Company stringrequired
The company you want to interact with
Wethod-Version stringrequired
The API version you want to use
Responses
- 204
- 401
- 403
- 404
Location successfully attached to holiday
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
key string
Error unique key
message string
Human-readable message describing the error
{
"key": "string",
"message": "string"
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
key string
Error unique key
message string
Human-readable message describing the error
{
"key": "string",
"message": "string"
}
Not found
- application/json
- Schema
- Example (from schema)
Schema
key string
Error unique key
message string
Human-readable message describing the error
{
"key": "not_found",
"message": "string"
}
Loading...