/company/excluded_dates

Create a company excluded date.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Request

PropertyTypeDescription
start_dateStringRequired. The first excluded day, in YYYY-MM-DD format.
end_dateStringThe last excluded day, in YYYY-MM-DD format. Leave it out for a single day. A range must be shorter than one year.
nameStringThe name of the excluded date, such as Winter break.

Send the properties inside data.attributes.

If an excluded date with the same start_date already exists, the API updates it and returns 200 instead of 201. You can send the same request again without creating a duplicate.

An API key that is limited to some buildings cannot change the company excluded dates.

Response

A response object in JSON:API format (https://jsonapi.org/). data is one excluded date.

PropertyTypeDescription
idStringThe excluded date ID.
attributes.start_dateStringThe first excluded day, in YYYY-MM-DD format.
attributes.end_dateStringThe last excluded day, in YYYY-MM-DD format.
attributes.nameStringThe name of the excluded date, such as Winter break.
attributes.created_atStringWhen the excluded date was created, in ISO 8601 format.
attributes.updated_atStringWhen the excluded date was last changed, in ISO 8601 format.
Body Params
data
object
required
Responses

401

The vs-api-key header is missing or not valid.

403

The API key is limited to some buildings.

422

The list already holds 500 excluded dates.

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json