Excluded Dates API

Manage the days that metrics skip, for the company and for each building.

Excluded dates are days that metrics skip, such as holidays and office closures. A company has one list of excluded dates that every building uses. A building can use its own list instead: set use_global_excluded_dates to false with /buildings/:building_id/settings.

An excluded date has a start_date and an end_date, in YYYY-MM-DD format. For a single day, both dates are the same. A range must be shorter than one year, and a list can hold at most 500 excluded dates.

Building endpoints take the id that /buildings returns, not the building_ref_id.

An API key that is limited to some buildings can read the company excluded dates and change the excluded dates of its buildings. It cannot change the company excluded dates.

Requests and responses conform to the JSON API spec (https://jsonapi.org/). Send properties inside data.attributes:

{
  "data": {
    "attributes": {
      "start_date": "2026-12-24",
      "end_date": "2026-12-26",
      "name": "Winter break"
    }
  }
}

Metrics include a change after a background refresh, usually within a few minutes.

Errors

StatusDescription
400A property is missing or not valid, such as a date that is not in YYYY-MM-DD format or a range of one year or longer. source.parameter names the property.
401The API key is missing or not valid.
403An API key that is limited to some buildings tried to change the company excluded dates.
404The building or the excluded date does not exist, or the API key cannot access it.
409Another excluded date in the same list already starts on that date.
422The list already holds 500 excluded dates.
{
  "errors": [
    {
      "status": 400,
      "source": { "parameter": "end_date" },
      "title": "Invalid Parameter",
      "detail": "An excluded date must be shorter than a year."
    }
  ]
}