Get a single location by external id
Changed onReturns a single location by its external identifier within the given agenda - the (key, value) pair an ExtId mapping carries in the location's extIds. Use this when you sync from your own system and hold its id rather than the OpenAgenda uid. Resolves to the same Location as the by-uid get.
Request
- Base URL: https://api.openagenda.com/v3
- URL: https://api.openagenda.com/v3/agendas/{agendaUid}/locations/ext/{extKey}/{extId}
- Auth: one of:
- HTTP bearer
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://openagenda.com/api/auth/oauth2/authorize, token URL https://openagenda.com/api/auth/oauth2/token, scopes: locations:read)
Path parameters
Numeric uid of the agenda.
Name of the external system/source the identifier belongs to (the key of an ExtId mapping carried on the resource — an event or a location).
The resource's identifier within that external system (the value of an ExtId mapping carried in the resource's extIds). Percent-encode reserved characters.
Response
The location.
Example response
{
"uid": 67890,
"slug": "chateau-des-lebres_4421007",
"setUid": null,
"name": "Château des Lèbres",
"address": "Naves, 07140 Les Vans",
"city": "Les Vans",
"district": null,
"region": "Auvergne-Rhône-Alpes",
"department": "Ardèche",
"adminLevel3": null,
"adminLevel5": null,
"postalCode": "07140",
"insee": "07334",
"countryCode": "FR",
"latitude": 44.388303,
"longitude": 4.105528,
"timezone": "Europe/Paris",
"description": {
"fr": "Ancienne maison forte des comtes du Roure."
},
"access": {},
"image": {
"width": 1200,
"height": 800,
"src": "https://img.openagenda.com/u/1080x0/main/67890.full.image.jpg",
"srcTemplate": "https://img.openagenda.com/u/{geo}/main/67890.full.image.jpg",
"srcset": [
{
"width": 640,
"url": "https://img.openagenda.com/u/640x0/main/67890.full.image.jpg"
},
{
"width": 1080,
"url": "https://img.openagenda.com/u/1080x0/main/67890.full.image.jpg"
}
]
},
"imageCredits": null,
"website": "http://www.domainedeslebres.com/",
"email": null,
"phone": "0475363414",
"links": [
"https://fr-fr.facebook.com/domainedeslebres/"
],
"extIds": [
{
"key": "legacy",
"value": "4421007"
}
],
"additionalFields": {
"tags": [
{
"id": 2,
"label": "Château, hôtel urbain, palais, manoir"
}
]
},
"siret": null,
"verified": true,
"createdAt": "2017-10-30T14:21:07.000Z",
"updatedAt": "2019-04-29T15:40:33.000Z"
}Changes
- breaking
added to the response body
oneOflist for the response status - breaking
the response's body type changed from
objectto no type for status - breaking
removed the required property
from the response with the status - warning
removed the optional property
/from the response with the status - warning
removed the optional property
/from the response with the status - warning
added the new
bad_requestenum value to the/response property for the response status - warning
added the new
bad_requestenum value to the/response property for the response status - warning
added the new
forbiddenenum value to the/response property for the response status - warning
added the new
forbiddenenum value to the/response property for the response status - warning
added the new
insufficient_scopeenum value to the/response property for the response status - warning
added the new
insufficient_scopeenum value to the/response property for the response status - warning
added the new
not_foundenum value to the/response property for the response status - warning
added the new
not_foundenum value to the/response property for the response status - warning
added the new
read_only_credentialenum value to the/response property for the response status - warning
added the new
read_only_credentialenum value to the/response property for the response status - warning
added the new
service_unavailableenum value to the/response property for the response status - warning
added the new
service_unavailableenum value to the/response property for the response status - warning
added the new
unauthorizedenum value to the/response property for the response status - warning
added the new
unauthorizedenum value to the/response property for the response status
- breaking
- breaking
the response's body type changed from no type to
objectfor status - info
removed from the response body
oneOflist for the response status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
removed the
bad_requestenum value from the/response property for the response status - info
removed the
bad_requestenum value from the/response property for the response status - info
removed the
forbiddenenum value from the/response property for the response status - info
removed the
forbiddenenum value from the/response property for the response status - info
removed the
insufficient_scopeenum value from the/response property for the response status - info
removed the
insufficient_scopeenum value from the/response property for the response status - info
removed the
not_foundenum value from the/response property for the response status - info
removed the
not_foundenum value from the/response property for the response status - info
removed the
read_only_credentialenum value from the/response property for the response status - info
removed the
read_only_credentialenum value from the/response property for the response status - info
removed the
service_unavailableenum value from the/response property for the response status - info
removed the
service_unavailableenum value from the/response property for the response status - info
removed the
unauthorizedenum value from the/response property for the response status - info
removed the
unauthorizedenum value from the/response property for the response status - info
added the required property
to the response with the status
- breaking