Skip to main content

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

    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

Location successfully attached to holiday

Schema

    id integerrequired

    Possible values: >= 1

    The unique identifier of the resource

    created_at date-timerequired

    The date and time when the resource was created

    updated_at date-timerequired

    The date and time when the resource was last updated

    holiday_id integerrequired

    Possible values: >= 1

    The ID of the holiday

    location_id integerrequired

    Possible values: >= 1

    The ID of the location

    deleted_at date-time

    The date and time when the resource was deleted

Loading...