SmartGare
API referenceEndpoints

Correct a checkpoint

Corrects the name, connected areas, purpose and direction of a checkpoint, all stated again; its code is unchanged. **Required permission:** `referential.checkpoint:write`

PATCH/referential/v1/checkpoints/{id}

Corrects the name, connected areas, purpose and direction of a checkpoint, all stated again; its code is unchanged.

Required permission: referential.checkpoint:write

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*CorrectCheckpointRequest

Response Body

*/*

*/*

*/*

*/*

curl -X PATCH "https://example.com/referential/v1/checkpoints/string" \  -H "Content-Type: application/json" \  -d '{    "direction": "INBOUND",    "from_area_id": "string",    "name": "string",    "purpose": "STATION_ENTRY",    "to_area_id": "string"  }'
{  "capabilities": [    {      "active": true,      "bridge_address": "string",      "equipment_code": "string",      "equipment_id": "string",      "equipment_name": "string",      "released_at": "2019-08-24T14:15:22Z",      "retirement_reason": "string",      "status": "string",      "type": "string",      "wiring_reference": "string"    }  ],  "code": "string",  "created_at": "2019-08-24T14:15:22Z",  "direction": "string",  "from_area_id": "string",  "id": "string",  "name": "string",  "purpose": "string",  "status": "string",  "to_area_id": "string",  "updated_at": "2019-08-24T14:15:22Z"}