Updates a user phone number
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": "a68e9078-bf4f-48a6-a566-5eef43443a49",
"type": "user_phone_numbers",
"attributes": {
"user_id": 497,
"phone": "+14155553000",
"primary": true,
"created_at": "2025-08-19T10:26:05.749-07:00",
"updated_at": "2025-08-19T10:26:05.853-07:00"
}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
user_phone_number updated without verification when feature disabled
The response is of type object
.
Was this page helpful?
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": "a68e9078-bf4f-48a6-a566-5eef43443a49",
"type": "user_phone_numbers",
"attributes": {
"user_id": 497,
"phone": "+14155553000",
"primary": true,
"created_at": "2025-08-19T10:26:05.749-07:00",
"updated_at": "2025-08-19T10:26:05.853-07:00"
}
}
}