Update a location's static emergency address
PATCH/v2/external_connections/:id/locations/:location_id
Update a location's static emergency address
Request
Path Parameters
id uuidrequired
The ID of the external connection
location_id uuidrequired
The ID of the location to update
- application/json
Body
required
static_emergency_address_id uuidrequired
A new static emergency address ID to update the location with
Responses
200: Location successfully updated with no associated orders to process
- application/json
202: Location update accepted; associated orders being processed
- application/json
404: Location or external connection not found
- application/json
422: Unprocessable Entity - Location already has an accepted emergency address
- application/json
Request samples
curl -L -X PATCH 'https://api.telnyx.com/v2/v2/external_connections/:id/locations/:location_id' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"static_emergency_address_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'
Response samples
{
"data": {
"location_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"static_emergency_address_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"accepted_address_suggestions": true
}
}
{
"data": {
"location_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"static_emergency_address_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"accepted_address_suggestions": true
}
}
{
"errors": [
{
"code": "string",
"detail": "string",
"meta": {
"url": "string"
},
"title": "string",
"source": {
"pointer": "string"
}
}
]
}
{
"errors": [
{
"code": "string",
"detail": "string",
"meta": {
"url": "string"
},
"title": "string",
"source": {
"pointer": "string"
}
}
]
}