API referenceEndpoints
Get a locality by code
**Required permission:** `referential.locality:read`
GET
/referential/v1/localities/by-code/{code}Required permission: referential.locality:read
Authorization
oauth2 AuthorizationBearer <token>
In: header
Path Parameters
code*string
Response Body
*/*
*/*
curl -X GET "https://example.com/referential/v1/localities/by-code/string"{ "code": "string", "created_at": "2019-08-24T14:15:22Z", "id": "string", "latitude": 0.1, "longitude": 0.1, "name": "string", "names_by_locale": { "property1": "string", "property2": "string" }, "status": "string", "updated_at": "2019-08-24T14:15:22Z"}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`
Get a locality
**Required permission:** `referential.locality:read`