Ga naar hoofdinhoud

building_post_grid_limit_schedule

POST 

/public-api/buildings/:uuid/schedules/grid_limits/

Pre-requisites

  • uuid: You need a (building) uuid for this endpoint. You can get a list of buildings with GET /buildings/.

Creates one or more GridLimitSchedule occurrences for the specified building.

The request body is an array of items. Each item defines a time window and limits. Occurrences may touch but must not overlap (either with each other in the same request or with existing occurrences in the database).

Validation & business rules

  • Quarter-hour alignment is enforced on both timestamps.
  • Earliest start: start_timestamp ≥ now_utc + 15 minutes.
  • Horizon: end_timestamp ≤ 00:00:00 UTC of the 8th calendar day from now.
  • Duration order: end_timestamp > start_timestamp.
  • No overlaps:
    • Within the same request payload (items may touch, not overlap).
    • With existing occurrences for the building (any intersection is rejected).

Request

Responses