SmartGare
API referenceEndpoints

Correct a departure zone

States the zone's name, towns, bays and spare again; its code is unchanged. A bay it no longer names leaves it. **Required permission:** `referential.bay:write`

PATCH/referential/v1/departure-zones/{id}

States the zone's name, towns, bays and spare again; its code is unchanged. A bay it no longer names leaves it.

Required permission: referential.bay:write

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*CorrectDepartureZoneRequest

Response Body

*/*

*/*

*/*

curl -X PATCH "https://example.com/referential/v1/departure-zones/string" \  -H "Content-Type: application/json" \  -d '{    "bay_ids": [      "string"    ],    "locality_ids": [      "string"    ],    "name": "string",    "spare_bay_id": "string"  }'
{  "bay_ids": [    "string"  ],  "code": "string",  "created_at": "2019-08-24T14:15:22Z",  "id": "string",  "locality_ids": [    "string"  ],  "name": "string",  "retired_at": "2019-08-24T14:15:22Z",  "retirement_reason": "string",  "spare_bay_id": "string",  "status": "string"}