Skip to main content

Set My Phone

PUT 

https://$CUSTOM-DOMAIN/auth/v1/users/me/phone

Sets a new phone number to the authenticated user. If a notification provider is configured the user will receive an sms with a code to authenticate the number.

Request​

Body

required

    phone stringrequired

    Possible values: non-empty and <= 50 characters

Responses​

A successful response.

Schema

    details

    object

    sequence uint64

    on read: the sequence of the last event reduced by the projection

    on manipulation: the timestamp of the event(s) added by the manipulation

    creationDate date-time

    on read: the timestamp of the first event of the object

    on create: the timestamp of the event(s) added by the manipulation

    changeDate date-time

    on read: the timestamp of the last event reduced by the projection

    on manipulation: the

    resourceOwner resource_owner is the organization an object belongs to (string)
curl -L -X PUT 'https://$CUSTOM-DOMAIN/auth/v1/users/me/phone' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"phone": "+41 71 000 00 00"
}'
Request Collapse all
Base URL
https://$CUSTOM-DOMAIN/auth/v1
Auth
Body required
{
  "phone": "+41 71 000 00 00"
}
ResponseClear

Click the Send API Request button above and see the response here!