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": "<string>",
"type": "user_phone_numbers",
"attributes": {
"user_id": 123,
"phone": "<string>",
"primary": true,
"verified_at": "2023-11-07T05:31:56Z",
"verification_attempts_today": 123,
"created_at": "<string>",
"updated_at": "<string>"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
user_phone_number updated and verification status reset
Show child attributes
Unique ID of the phone number
user_phone_numbers Show child attributes
Phone number in international format
Whether this is the primary phone number
Date when phone number was verified
Number of verification attempts made today
Date of creation
Date of last update
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": "<string>",
"type": "user_phone_numbers",
"attributes": {
"user_id": 123,
"phone": "<string>",
"primary": true,
"verified_at": "2023-11-07T05:31:56Z",
"verification_attempts_today": 123,
"created_at": "<string>",
"updated_at": "<string>"
}
}
}