Skip to main content

Set My 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 string required

    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
PUT /users/me/phone

Authorization

name: OAuth2type: oauth2scopes: openidflows: {
  "authorizationCode": {
    "authorizationUrl": "$CUSTOM-DOMAIN/oauth/v2/authorize",
    "tokenUrl": "$CUSTOM-DOMAIN/oauth/v2/token",
    "scopes": {
      "openid": "openid"
    }
  }
}

Request

Base URL
https://$CUSTOM-DOMAIN/auth/v1
Bearer Token
Content-Type
Body required
{
"phone": "+41 71 000 00 00"
}
Accept
curl / cURL
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>' \
--data-raw '{
"phone": "+41 71 000 00 00"
}'