API referenceEndpoints
Declare a departure zone
Creates a zone from its bays, its spare bay and the towns it serves. **Required permission:** `referential.bay:write`
POST
/referential/v1/departure-zonesCreates a zone from its bays, its spare bay and the towns it serves.
Required permission: referential.bay:write
Authorization
oauth2 AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
body*DeclareDepartureZoneInput
Response Body
*/*
*/*
*/*
curl -X POST "https://example.com/referential/v1/departure-zones" \ -H "Content-Type: application/json" \ -d '{ "bay_ids": [ "string" ], "code": "string", "locality_ids": [ "string" ], "name": "string", "spare_bay_id": "string" }'{ "id": "string"}