Update a location
Changes only the fields in the body.
Scope: knowledge:write.
bearerAuthAuthorizationBearer <token>An organization API key, rky_live_…, created in Settings → API. Send it only from a server.
location_id*stringLocation ID.
uuidIdempotency-Key?stringOptional. A value you choose, unique per logical write, 8–200 characters: a UUID or an ID from your system such as order-10482-ready. Retrying with the same key and body replays the first response instead of repeating the write.
8 <= length <= 200application/json- body
Only the fields you send change. Send null to clear an optional one.
name?stringName customers know it by.
1 <= length <= 200address?stringFull address as customers read it.
1 <= length <= 500latitude?numberLatitude of the map pin, confirmed, not estimated.
-90 <= value <= 90longitude?numberLongitude of the map pin, confirmed, not estimated.
-180 <= value <= 180street?|Street.
city?|City.
state?|State, province or region.
postal_code?|Postal code.
country?|Country.
country_code?|Country code, ISO 3166-1 alpha-2.
phone?|Phone with country code, for example +507 6000-1234.
email?|Email.
hours?|Opening hours, as free text.
Success.
application/json- response
data*A branch or place the agents can send as a WhatsApp location.
curl -X PATCH 'https://getricky.ai/api/v1/knowledge/locations/497f6eca-6276-4993-bfeb-53cbbbba6f08' \ -H 'Idempotency-Key: order-10482-ready' \ -H 'Content-Type: application/json' \ -d '{ "hours": "Todos los días, 9:00 a 21:00"}'{ "data": { "id": "c3d4e5f6-a7b8-4c9d-8e0f-1a2b3c4d5e6f", "name": "Casa Nativa Albrook", "address": "Albrook Mall, local 214, Panamá", "latitude": 8.9733, "longitude": -79.5511, "street": "Albrook Mall, local 214", "city": "Panamá", "state": "Panamá", "postal_code": null, "country": "Panamá", "country_code": "PA", "phone": "+50760000000", "email": "albrook@example.com", "hours": "Lunes a sábado, 10:00 a 20:00" }}