post
https://api.vergesense.com/company/excluded_dates
Create a company excluded date.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Request
| Property | Type | Description |
|---|---|---|
start_date | String | Required. The first excluded day, in YYYY-MM-DD format. |
end_date | String | The last excluded day, in YYYY-MM-DD format. Leave it out for a single day. A range must be shorter than one year. |
name | String | The 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.
| Property | Type | Description |
|---|---|---|
id | String | The excluded date ID. |
attributes.start_date | String | The first excluded day, in YYYY-MM-DD format. |
attributes.end_date | String | The last excluded day, in YYYY-MM-DD format. |
attributes.name | String | The name of the excluded date, such as Winter break. |
attributes.created_at | String | When the excluded date was created, in ISO 8601 format. |
attributes.updated_at | String | When the excluded date was last changed, in ISO 8601 format. |
401The vs-api-key header is missing or not valid.
403The API key is limited to some buildings.
422The list already holds 500 excluded dates.

