PUT
/
v1
/
phone_numbers
/
{id}
curl --request PUT \
  --url https://api.rootly.com/v1/phone_numbers/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '{
  "data": {
    "type": "user_phone_numbers",
    "attributes": {
      "phone": "<string>"
    }
  }
}'
{
  "data": {
    "id": "cf61044f-96db-46e4-9248-d5863ad0f24d",
    "type": "user_phone_numbers",
    "attributes": {
      "user_id": 482,
      "phone": "+14155553000",
      "primary": true,
      "created_at": "2025-05-29T17:49:40.312-07:00",
      "updated_at": "2025-05-29T17:49:40.515-07:00"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/vnd.api+json

Response

200
application/vnd.api+json

user_phone_number updated

The response is of type object.