Skip to main content

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

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

202: Location update accepted; associated orders being processed

404: Location or external connection not found

422: Unprocessable Entity - Location already has an accepted emergency address

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
}
}