SmartGare
API referenceEndpoints

Freeze a coach out of a coordination's turn

From the day given, today or later, the coach's permit takes no turn in its lines' rotation, until it is reactivated. Kept with who, when and why, and announced. **Required permission:** `referential.coordination:write`

POST/referential/v1/coordinations/{id}/frozen-coaches

From the day given, today or later, the coach's permit takes no turn in its lines' rotation, until it is reactivated. Kept 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*FreezeCoordinationCoachRequest

Response Body

*/*

*/*

curl -X POST "https://example.com/referential/v1/coordinations/string/frozen-coaches" \  -H "Content-Type: application/json" \  -d '{    "authorization_id": "string",    "from": "2019-08-24",    "reason": "string"  }'
{  "authorization_id": "string",  "coordination_id": "string",  "frozen_at": "2019-08-24T14:15:22Z",  "frozen_by": "string",  "frozen_from": "2019-08-24",  "id": "string",  "permit_in_coordination": true,  "reactivated_at": "2019-08-24T14:15:22Z",  "reactivated_by": "string",  "reactivated_from": "2019-08-24",  "reactivation_reason": "string",  "reason": "string"}