SetPhone
Set the user phone
Deprecated: Update the users phone field.
Set the phone number of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by sms..
Path Parameters
user_id*string
Request Body
application/json
phone?string
isVerified*boolean
[key: string]?never
Response Body
application/json
application/json
curl -X POST "https://loading/v2/users/string/phone" \ -H "Content-Type: application/json" \ -d '{ "phone": "string", "isVerified": true }'{
"details": {
"sequence": 0,
"changeDate": "1s",
"resourceOwner": "string",
"creationDate": "1s"
},
"verificationCode": "string"
}{
"code": "not_found",
"message": "string",
"detail": {
"type": "string",
"value": "string",
"debug": {}
}
}Was this page helpful?