v1

latestOpenAPI 3.1.02026-07-2295105298.6 KB
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}

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