SmartGare
API referenceEndpoints

Release the bay dedicated to a coordination

Frees the bay, and every other bay the coordination reserves, so each can be dedicated to another coordination or decommissioned. A coordination that names no bay is answered as it is. A release keeps the freed bay in the coordination's bay history with who, when and why. **Required permission:** `referential.coordination:write`

DELETE/referential/v1/coordinations/{id}/bay

Frees the bay, and every other bay the coordination reserves, so each can be dedicated to another coordination or decommissioned. A coordination that names no bay is answered as it is. A release keeps the freed bay in the coordination's bay history with who, when and why.

Required permission: referential.coordination:write

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Query Parameters

reason*string

Why the bay is released, at most 2000 characters; kept in the bay's history.

Response Body

*/*

*/*

curl -X DELETE "https://example.com/referential/v1/coordinations/string/bay?reason=string"
{  "bay_id": "string",  "bay_ids": [    "string"  ],  "code": "string",  "created_at": "2019-08-24T14:15:22Z",  "id": "string",  "name": "string",  "reference_day": "2019-08-24",  "rotation_day_starts_at": "string",  "status": "string",  "updated_at": "2019-08-24T14:15:22Z"}