PUT
/
api
/
v1
/
phone-numbers
/
{phoneNumber}
Update phone number
curl --request PUT \
  --url https://api.elemente.ai/api/v1/phone-numbers/{phoneNumber} \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "phone": "+1234567890",
  "country": "US",
  "provider": "twilio",
  "agentId": "c84951a0-8354-40b0-a1ee-c43d259f6a40",
  "status": true
}'

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

phoneNumber
string
required

Phone number to update

Example:

"+123456789"

Body

application/json

Input data for updating a phone number

The body is of type object.

Response

200

Phone number updated successfully