API referenceEndpoints
List occupancy-agreements
Searches the declared register with optional filters. **Required permission:** `referential.occupancy-agreement:read`
GET
/referential/v1/occupancy-agreementsSearches the declared register with optional filters.
Required permission: referential.occupancy-agreement:read
Authorization
oauth2 AuthorizationBearer <token>
In: header
Query Parameters
station_id?string
commercial_unit_id?string
occupant_id?string
Response Body
*/*
curl -X GET "https://example.com/referential/v1/occupancy-agreements"[ { "commercial_unit_id": "string", "concluded_at": "2019-08-24T14:15:22Z", "concluded_by": "string", "created_at": "2019-08-24T14:15:22Z", "id": "string", "occupant_id": "string", "reference": "string", "station_id": "string", "terminated_at": "2019-08-24T14:15:22Z", "terminated_by": "string", "terminated_on": "2019-08-24", "updated_at": "2019-08-24T14:15:22Z", "valid_from": "2019-08-24", "valid_until": "2019-08-24" }]List the mandatory policies the station lacks
Every domain the product needs a policy for that has no rule, or whose rule has no version in force at the instant given (now by default), with the module that reads it. **Required permission:** `referential.rule:read`
Conclude an occupancy agreement
Confides a unit to an occupant for inclusive dates. Refuses overlapping periods; assigns a reference when omitted. **Required permission:** `referential.occupancy-agreement:write`