savePolicies
put
/ccadmin/v1/merchant/profilePolicies
Save Policies. Saves the modified password policies
Request
Supported Media Types
- application/json
Root Schema : savePolicies_request
Type:
Show Source
object
-
blockCommonPasswords(optional):
boolean
Block the Use of Commonly Chosen Passwords and Weak Passphrases.
-
cannotUsePreviousPasswords(optional):
boolean
Applies the previous password usage constraint.
-
cannotUseUsername(optional):
string
Password must not be the same as their Username.
-
enableProfileRegistrationEmailCheck(optional):
boolean
Applies new profile resgistration using email.
-
guestCheckoutEnabled(optional):
boolean
Applies the authorization for anonymous shoppers to sign-in to complete checkout.
-
minPasswordLength(optional):
integer
Minimum length of the password.
-
numberOfPreviousPasswords(optional):
integer
password should not have been used as previous N passwords for the given shopper user.
-
passwordExpirationEnabled(optional):
boolean
Applies the password expiration constraint.
-
passwordExpirationLength(optional):
integer
number of days after which the current password of the shopper will automatically expire.
-
selfRegistrationEnabled(optional):
boolean
Set the flag to true if Self Registration is required.
-
sessionTimeoutEnabled(optional):
boolean
Applies the session timeout length constraint.
-
sessionTimeoutLength(optional):
integer
Timeout duration for all shopper sessions.
-
useCase(optional):
boolean
Applies the usage of capital letters in user password..
-
useMinPasswordLength(optional):
boolean
Applies the minimum password length constraint.
-
useNumber(optional):
boolean
Password must include a number.
-
useSymbol(optional):
boolean
Applies the usage of symbol in user password.
Example:
{
"guestCheckoutEnabled":true,
"numberOfPreviousPasswords":3,
"passwordExpirationEnabled":true,
"sessionTimeoutLength":15,
"cannotUsePreviousPasswords":true,
"passwordExpirationLength":90,
"sessionTimeoutEnabled":true,
"useNumber":false,
"useCase":false,
"cannotUseUsername":false,
"useMinPasswordLength":true,
"selfRegistrationEnabled":false,
"minPasswordLength":8,
"enableProfileRegistrationEmailCheck":true,
"blockCommonPasswords":true,
"useSymbol":false
}
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Root Schema : savePolicies_response
Type:
Show Source
object
-
blockCommonPasswords(optional):
boolean
Block the Use of Commonly Chosen Passwords and Weak Passphrases.
-
cannotUsePreviousPasswords(optional):
boolean
Applies the previous password usage constraint.
-
cannotUseUsername(optional):
string
Password must not be the same as their Username.
-
enableProfileRegistrationEmailCheck(optional):
boolean
Applies new profile resgistration using email.
-
guestCheckoutEnabled(optional):
boolean
Applies the authorization for anonymous shoppers to sign-in to complete checkout.
-
minPasswordLength(optional):
integer
Minimum length of the password.
-
minPasswordLengthMaxVal(optional):
integer
Maximum value of minimum length of the password.
-
minPasswordLengthMinVal(optional):
integer
Minimum value of minimum length of the password.
-
numberOfPreviousPasswords(optional):
integer
password should not have been used as previous N passwords for the given shopper user.
-
numberOfPreviousPasswordsMaxVal(optional):
integer
Maximum number of previous passwords to be stored for the given shopper user.
-
numberOfPreviousPasswordsMinVal(optional):
integer
Minimum number of previous passwords to be stored for the given shopper user.
-
passwordExpirationEnabled(optional):
boolean
Applies the password expiration constraint.
-
passwordExpirationLength(optional):
integer
number of days after which the current password of the shopper will automatically expire.
-
passwordExpirationLengthMinVal(optional):
integer
minimum number of days after which the current password of the shopper will automatically expire..
-
selfRegistrationEnabled(optional):
boolean
Set the flag to true if Self Registration is required.
-
sessionTimeoutEnabled(optional):
boolean
Applies the session timeout length constraint.
-
sessionTimeoutLength(optional):
integer
Timeout duration for all shopper sessions.
-
sessionTimeoutLengthMaxVal(optional):
integer
Maximum timeout length for the user session.
-
sessionTimeoutLengthMinVal(optional):
integer
Minimum timeout length for the user session.
-
useCase(optional):
boolean
Applies the usage of capital letters in user password..
-
useMinPasswordLength(optional):
boolean
Applies the minimum password length constraint.
-
useNumber(optional):
boolean
Password must include a number.
-
useSymbol(optional):
boolean
Applies the usage of symbol in user password.
Example Response (application/json)
{
"guestCheckoutEnabled":true,
"numberOfPreviousPasswords":3,
"numberOfPreviousPasswordsMinVal":1,
"passwordExpirationEnabled":false,
"passwordExpirationLengthMinVal":1,
"sessionTimeoutLength":15,
"cannotUsePreviousPasswords":false,
"passwordExpirationLength":90,
"minPasswordLengthMinVal":4,
"sessionTimeoutEnabled":true,
"minPasswordLengthMaxVal":64,
"useNumber":true,
"cannotUseUsername":false,
"useMinPasswordLength":true,
"selfRegistrationEnabled":false,
"minPasswordLength":8,
"numberOfPreviousPasswordsMaxVal":6,
"enableProfileRegistrationEmailCheck":true,
"useMixedCase":false,
"blockCommonPasswords":true,
"sessionTimeoutLengthMinVal":1,
"sessionTimeoutLengthMaxVal":120,
"useSymbol":false
}
Default Response
The error response
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