Basics

Update Location

Updates a location's name, country, and/or prompt associations. Only supplied fields change; omitting prompt_ids preserves existing associations. Returns a before/after snapshot.

patch/api/v1/locations/{location_id}

Request

  • Base URL
    https://api.athenahq.ai
  • Auth
    API key in header x-api-key

Path parameters

location_idstring uuid required

The location to update.

Request body

website_idstring uuid required
locationstring

New name. Trimmed; blank rejected.

countrystring

New country (case-insensitive, supported).

prompt_idsstring[]

Replace active associations. Omit to keep existing; [] clears them.

Response

Location updated

idstring uuid required
locationstring required
countrystring nullable

Changes

No recorded changes to this operation across all 3 revisions of this API.