Skip to main content
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

phone
string
required

The phone number

Example:

"+1234567890"

country
string | null
required

The country code

Example:

"US"

provider
string | null
required

The provider

Example:

"twilio"

agentId
string | null
required

The agent ID

Example:

"c84951a0-8354-40b0-a1ee-c43d259f6a40"

status
boolean | null
required

The status of the phone number

Example:

true

Response

Phone number updated successfully