Skip to main content
PATCH
/
api
/
v1
/
ops
/
profile
/
phone
Update Profile Phone
curl --request PATCH \
  --url https://api.example.com/api/v1/ops/profile/phone \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "otpId": "0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3a",
  "code": "482910",
  "phoneIso": "BR",
  "phoneDdi": "55",
  "phoneNumber": "11987654321"
}
'
{
  "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "googleProviderId": "<string>",
  "scope": {
    "permissionIds": [
      "<string>"
    ],
    "organization": {},
    "role": {}
  },
  "name": "<string>",
  "email": "<string>",
  "emailVerified": true,
  "avatar": "<string>",
  "document": "<string>",
  "birthDate": "2023-12-25",
  "phoneIso": "<string>",
  "phoneDdi": "<string>",
  "phoneNumber": "<string>",
  "phoneVerified": true,
  "createdBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Update profile phone payload

otpId
string<uuid>
required

OTP identifier

Example:

"0195e7a1-8b5c-7d3e-9f4a-2c6b8d0e1f3a"

code
string
required

OTP code

Example:

"482910"

phoneIso
string
required
Example:

"BR"

phoneDdi
string
required
Example:

"55"

phoneNumber
string
required
Example:

"11987654321"

Response

OK

Visão consolidada do usuário autenticado — identidade, dados de passageiro e escopo de acesso

userId
string<uuid>
required

Identificador do usuário

googleProviderId
string | null
required

ID do provedor Google OAuth

scope
object
required

Escopo de organização, role e permissões

name
string
required

Nome completo

email
string | null
required

Email

emailVerified
boolean
required

Email verificado

avatar
string | null
required

Referência ao avatar

document
string | null
required

Número do documento

documentType
enum<string> | null
required

Tipo do documento

Available options:
CPF,
CNPJ,
RG
birthDate
string<date> | null
required

Data de nascimento

phoneIso
string
required

Código ISO do país do telefone

phoneDdi
string
required

DDI do telefone

phoneNumber
string
required

Número do telefone

phoneVerified
boolean
required

Telefone verificado

status
enum<string>
required

Status da conta

Available options:
PENDING,
ACTIVE,
BLOCKED
createdBy
string<uuid> | null
required

Usuário que criou o registro, quando aplicável

createdAt
string<date-time>
required

Data de criação

updatedBy
string<uuid> | null
required

Usuário que fez a última atualização, quando aplicável

updatedAt
string<date-time>
required

Data da última atualização