updateExpiredPassword
post
/ccstore/v1/profiles/updateExpiredPassword
Update Expired Password. Used to change password of the profile,if current password is expired. Optionally takes the x-ccasset-language header to get translated content in another language.
Request
Supported Media Types
- application/json
Header Parameters
- X-CCAsset-Language
-
Type:
stringThe asset language of the request
Body Parameter
Root Schema : updateExpiredPassword_request
{
"newPassword":"12345678",
"login":"a@a.com",
"newConfirmPassword":"12345678",
"token":"yJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMTAwMzMiLCJpc3MiOiJzdG9yZWZyb250VUkiLCJleHAiOjE1MDQxMTE3OTQsImlhdCI6MTUwNDA5MDE5NH0=.+AllN7uBoKLc98HDY4nqlqq9IdB575B62tfzclBmewM="
}
- confirmPassword
-
Type:
stringConfirmation of the new password. This should match the new password value. This will be optional when the operation is validateToken. - login
-
Type:
stringLogin of the user. This will be optional when the operation is validateToken. - op
-
Type:
stringThe operation to be performed. This is an optional parameter that can be set to validateToken to just validate the token. - password
-
Type:
stringThe new password. This will be optional when the operation is validateToken. - token
-
Type:
stringRequired:trueThe token for the password reset.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : updateExpiredPassword_response
- success
-
Type:
booleanReturns true if the password is updated successfully.
Example 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|
|------------------|------------------|
|83037|If the token authentication fails.|
|23026|If the user input is null or empty.|
|83039|If the password and the confirm password do not match.|
|83032|If there is an error while updating the password.|
Body
Root Schema : errorModel
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Request:
{
"newPassword": "12345678",
"login": "a@a.com",
"newConfirmPassword": "12345678",
"token": "yJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMTAwMzMiLCJpc3MiOiJzdG9yZWZyb250VUkiLCJleHAiOjE1MDQxMTE3OTQsImlhdCI6MTUwNDA5MDE5NH0=.+AllN7uBoKLc98HDY4nqlqq9IdB575B62tfzclBmewM="
}
Sample Response Payload returned by endpoint:
{"success": true}