Backend API
Update user phone properties
cURL
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, "is_verified": true }'
{ "id": "<string>", "phone_number": "+1234567890", "is_primary": true, "is_verified": true, "verified_at": "2023-11-07T05:31:56Z" }
JWT Bearer token authentication using the Authorization header
(i64 formatted as string)
Phone updated successfully
The response is of type object.
object