patch
https://api.vergesense.com/company/excluded_dates/
Update 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 | 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.
Send only the properties to change. If you change start_date and leave out end_date, the end date moves by the same number of days, so the range keeps its length.
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.
404The building or excluded date does not exist, or the key cannot access it.
409Another excluded date already starts on this date.

