Basics

Create Location

Creates a location for a website. country is case-insensitive and stored as its canonical label. Any attached prompt_ids must allow the location's country.

post/api/v1/locations

Request body

website_idstring uuid required
locationstring required

Location name. Trimmed; blank rejected.

countrystring required

Supported country (case-insensitive).

prompt_idsstring[]

Active prompt ids to attach.

Example request

{
  "location": "New York",
  "country": "United States"
}

Response

Location created

idstring uuid required
locationstring required
countrystring required

Changes

No recorded changes to this endpoint across all 1 revision of this API.