Reading locations
List
GET /v2/agendas/{agendaUID}/locations
In brief
agendaUIDis the unique identifier of the agenda where the locations are referenced- Read authentication or access token authentication is required
- The response contains a segment of the complete location directory of the agenda. If the total exceeds the number of locations returned in a single call, a read loop will need to be implemented.
Parameters
Filters
| Key | Type | Description | Possible values / Example |
|---|---|---|---|
updatedAt.gte | date | Returns locations updated after this date | Format: YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS+ZZZZ |
updatedAt.lte | date | Returns locations updated before this date | Same |
createdAt.gte | date | Returns locations created after this date | Same |
createdAt.lte | date | Returns locations created before this date | Same |
search | string | Text search query on locations | Example: "musée" |
state | integer | Filter by verification status | 0 (unverified), 1 (verified) |
Content
| Key | Type | Description | Possible values / Example |
|---|---|---|---|
detailed | boolean | Returns all fields for locations | true or false |
Navigation
| Key | Type | Description | Possible values / Example |
|---|---|---|---|
size | integer | Maximum number of locations to return | Example: 20 |
after | string | Cursor for pagination | Value provided in the previous response (after) |
order | string | Sort order | name.asc, name.desc, createdAt.asc, createdAt.desc |
Response
The response body has three keys:
locations: list of locations matching the criteria.total: total number of results.after: value to use for the next page.
Read a location
By its unique identifier (uid)
GET /v2/agendas/{agendaUID}/locations/{locationUID}
The response will contain all available data for the location.
Note: to simply check whether the location exists, use the HEAD method, which will avoid unnecessary data transfer.
By an external identifier (extId)
- If no specific key is associated with the external identifier ("default" key):
/v2/agendas/{agendaUID}/locations/ext/{value}
- If the external identifier is associated with a key
/v2/agendas/{agendaUID}/locations/ext/{key}/{velue}