SmartGare
API referenceEndpoints

Name the bay dedicated to a coordination

Records which bay this coordination's coaches leave from (RG-223). The bay must exist and be active, and is dedicated to one active coordination at a time. The same bay again changes nothing; a change keeps the previous bay in the coordination's bay history with who, when and why. It is the first of the coordination's reserved bays; the others stay after it. **Required permission:** `referential.coordination:write`

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

Records which bay this coordination's coaches leave from (RG-223). The bay must exist and be active, and is dedicated to one active coordination at a time. The same bay again changes nothing; a change keeps the previous bay in the coordination's bay history with who, when and why. It is the first of the coordination's reserved bays; the others stay after it.

Required permission: referential.coordination:write

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*DedicateCoordinationBayRequest

Response Body

*/*

*/*

curl -X PUT "https://example.com/referential/v1/coordinations/string/bay" \  -H "Content-Type: application/json" \  -d '{    "bay_id": "string",    "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"}