Skip to main content
PATCH
/
users
/
{user_id}
/
phones
/
{phone_id}
Update user phone
curl --request PATCH \
  --url https://api.wacht.dev/users/{user_id}/phones/{phone_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "is_primary": true
}
'
{
  "message": "Resource not found"
}

Authorizations

Authorization
string
header
required

API key authentication (Bearer token)

Path Parameters

user_id
string
required
phone_id
string
required

Body

application/json
is_primary
boolean

Response

Phone updated successfully