Skip to main content

Update DID Emergency

This request updates a DID emergency, targeted by secure ID.

patch /phonenumber/dids/{did_sid}/emergency
put /phonenumber/dids/{did_sid}/emergency

Sample

A sample PATCH request to update the DID Emergency object, targeted by the DID secure ID, with the values in the request body:

curl -X PATCH \
'https://api.carrierx.com/core/v2/phonenumber/dids/0493d917-e23c-41db-8067-0c986df71007/emergency' \
-H 'Content-Type: application/json' \
--data-binary '{"caller_name": "J Smith"}' \
-H 'Authorization: Bearer 5ebc03d6-8b2b-44ad-bf65-72d4f1491dda'

Response

200 status code with a serialized copy of the updated DID Emergency object:

{
"caller_name": "J Smith",
"enabled": true,
"locations": [
{
"address_1": "8104 E Nora Ave",
"address_2": "",
"city": "Spokane Valley",
"country_code": "USA",
"state": "WA",
"zip": "99212"
},
{
"address_1": "600 Boll Weevil Cir",
"address_2": "",
"city": "Enterprise",
"country_code": "USA",
"state": "AL",
"zip": "36330"
}
]
}

A DID Emergency object can be updated using either a PATCH or PUT request.

  • A PATCH request can be used to update one or more attribute values. When using a PATCH request, only the attributes specified in the request payload will be updated, all other attributes and values will remain the same. The DID emergency secure ID is passed in the query URL, and the values to be modified are passed in the request body.

  • A PUT request can be used to update an entire DID Emergency object. The DID emergency secure ID is passed in the query URL, and the entire DID Emergency object is passed in the request body.

note

Note, while all the fields must be present in a PUT request, not all the attribute values may be modified after the initial creation, because when created, some of them become read-only.

Required Scopes

To update a DID Emergency object, the partner must have the following scope enabled:

  • phonenumber.emergency.manage

Path Arguments

ParameterData TypeDescription
did_sid requiredstringThe DID secure ID.

Body Arguments

JSON representation of the fields and values to be updated.

All fields can be updated.

Refer to this table to view all fields that appear in the DID Emergency object.