SmartGare
API referenceEndpoints

Change a coordination's rotation settings

Sets at once its reference day — the day the first permit of its signed table takes the first departure — the time its rotation day starts, before which a departure belongs to the previous day's rotation (midnight when absent), and its reserved bays in order, the first being its dedicated bay. A bay newly reserved must be an active departure bay no other active coordination reserves. The same settings again change nothing; a change is kept in the rotation history with who, when and why, and announced. **Required permission:** `referential.coordination:write`

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

Sets at once its reference day — the day the first permit of its signed table takes the first departure — the time its rotation day starts, before which a departure belongs to the previous day's rotation (midnight when absent), and its reserved bays in order, the first being its dedicated bay. A bay newly reserved must be an active departure bay no other active coordination reserves. The same settings again change nothing; a change is kept in the rotation history with who, when and why, and announced.

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*ChangeCoordinationRotationRequest

Response Body

*/*

*/*

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