Skip to main content
PATCH
/
locations
/
{location_id}
Update Location
curl --request PATCH \
  --url https://playground.answeringagent.com/api/v1/locations/{location_id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "name": "<string>",
  "address": "<string>",
  "google_place_id": "<string>"
}
'
{
  "id": 123,
  "name": "<string>",
  "phone_number": "<string>",
  "status": "pending",
  "address": "<string>",
  "google_place_id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

X-API-KEY
string
header
required

Path Parameters

location_id
integer
required

The ID of the location

Body

application/json
name
string

Name of the location

address
string | null

Physical address of the location

google_place_id
string | null

Google Places ID for the location

Response

Location updated successfully

id
integer
name
string
phone_number
string | null
status
enum<string>
Available options:
pending,
active
address
string | null
google_place_id
string | null
created_at
string<date-time>
updated_at
string<date-time>