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:
string
The 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:
string
Confirmation of the new password. This should match the new password value. This will be optional when the operation is validateToken. - login
-
Type:
string
Login of the user. This will be optional when the operation is validateToken. - op
-
Type:
string
The operation to be performed. This is an optional parameter that can be set to validateToken to just validate the token. - password
-
Type:
string
The new password. This will be optional when the operation is validateToken. - token
-
Type:
string
Required:true
The 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:
boolean
Returns 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:
string
An optional non-localized message containing technical information for developers - errorCode
-
Type:
string
The numerical code identifying the error - errors
-
Type:
array
errorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
string
The localized message describing the error - moreInfo
-
Type:
string
An optional non-localized message with more information - o:errorPath
-
Type:
string
An optional machine readable description of where the error occurred - status
-
Type:
string
The HTTP status code - type
-
Type:
string
The URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object
- devMessage
-
Type:
string
An optional non-localized message containing technical information for developers - errorCode
-
Type:
string
The numerical code identifying the error - message
-
Type:
string
The localized message describing the error - moreInfo
-
Type:
string
An optional non-localized message with more information - o:errorPath
-
Type:
string
An optional machine readable description of where the error occurred - status
-
Type:
string
The 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}