AUTH.UPDATE_ACCOUNT
POSThttps://cloud.singlebaseapis.com/api
To update core account info, ie: email, password username. It requires an OTP to be sent with intent.
Request
- application/json
Body
- CHANGE_EMAIL_SCHEMA
- CHANGE_PASSWORD_SCHEMA
- CHANGE_USERNAME_SCHEMA
anyOf
action stringrequired
Default value: auth.update_account
The action
email stringrequired
The current email address
otp stringrequired
The OTP sent to the user
intent required
Possible values: [change_email
]
The intent for the update associated to the OTP
new_email stringrequired
The new email address
action stringrequired
Default value: auth.update_account
The action
email stringrequired
The current email address
otp stringrequired
The OTP sent to the user
intent required
Possible values: [change_password
]
The intent for the update associated to the OTP
new_password stringrequired
The new valid password
action stringrequired
Default value: auth.update_account
The action
email stringrequired
The current email address
otp stringrequired
The OTP sent to the user
intent required
Possible values: [change_username
]
The intent for the update associated to the OTP
new_username stringrequired
The new username
Responses
- 200
Auth JWT Token response
- application/json
- Schema
- Example (from schema)
Schema
data object
{
"data": {
"id_token": "string",
"refresh_token": "string",
"token_type": "string",
"token_info": {
"ttl": 0,
"exp": 0,
"iat": 0,
"aud": "string",
"_userkey": "string",
"project_id": "string"
},
"user_profile": {
"_userkey": "string",
"email": "string",
"email_verified": true,
"display_name": "string",
"photo_url": "string",
"username": "string",
"aud": "string",
"roles": [
"string"
],
"auth_types": [
"string"
]
}
}
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- CURL
curl -L -X POST 'https://cloud.singlebaseapis.com/api/' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'X-API-KEY: <API_KEY_VALUE>' \
-H 'Authorization: Bearer <TOKEN>' \
--data-raw '{
"action": "auth.update_account",
"email": "string",
"otp": "string",
"new_email": "string"
}'
ResponseClear