SmartGare
API referenceEndpoints

Declare a locality

Picks the locality from the official list of places; a typed town is refused. Its names and, when the place has one, its position come from the place. Answers 503 while no list is loaded. **Required permission:** `referential.locality:write`

POST/referential/v1/localities

Picks the locality from the official list of places; a typed town is refused. Its names and, when the place has one, its position come from the place. Answers 503 while no list is loaded.

Required permission: referential.locality:write

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*DeclareLocalityInput

Response Body

*/*

*/*

*/*

curl -X POST "https://example.com/referential/v1/localities" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string"}