sendMFAPasswordReset
post
/ccadmin/v1/adminProfiles/sendMFAPasswordReset
Send Password Reset with multi-factor authentication. Validate the reset token or set a user's new password. Send just the op and token to validate; send all of the values to reset the password along with valid passcode.
Request
Supported Media Types
- application/json
Root Schema : sendMFAPasswordReset_request
Type:
Show Source
object
-
confirmPassword(optional):
string
Confirmation value of the password. Required when resetting the password.
-
email(optional):
string
Email address for user profile. Required when resetting the password.
-
op(optional):
string
One of two values: validateToken or confirmPasswordReset.
-
password(optional):
string
New password value. Required when resetting the password.
-
token(optional):
string
Token to validate or use in the password reset process.
-
totp_code(optional):
string
One-Time Passcode generated by an authentication app linked to the user's account.
Example:
{
"op":"confirmPasswordReset",
"password":"ANewPassword123",
"confirmPassword":"ANewPassword123",
"totp_code":"123456",
"email":"amber@example.com",
"token":"sampleToken123123123"
}
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : sendMFAPasswordReset_response
Type:
Show Source
object
-
success(optional):
boolean
True if the password was reset successfully and valid passcode was provided, false if not.
Example Response (application/json)
{
"success":"true"
}
Default Response
The error response.
The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
|Error Code|Description|
|------------------|------------------|
|83004|User login ID is required.|
|60004|Resetting this account's password is not allowed. Check the link in your email and try again.|
|83039|Passwords did not match.|
|83041|One-Time Passcode is not valid. Please try again or contact your company's administrator if the problem persists.|
Root Schema : errorModel
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
errors(optional):
array errors
An optional list of errors if multiple errors were encountered
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code
-
type(optional):
string
The URI to the HTTP state code definition
Nested Schema : errors
Type:
array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type:
Show Source
object
-
devMessage(optional):
string
An optional non-localized message containing technical information for developers
-
errorCode(optional):
string
The numerical code identifying the error
-
message(optional):
string
The localized message describing the error
-
moreInfo(optional):
string
An optional non-localized message with more information
-
o:errorPath(optional):
string
An optional machine readable description of where the error occurred
-
status(optional):
string
The HTTP status code