Change authentication options

Request

Changes customer authentication options.
Security
SecretApiKey or JWT
Bodyapplication/jsonrequired
Authentication options resource.
passwordPatternstring or null
Allowed password pattern.
Example:"/^[0-9]+$/"
credentialTtlinteger
Default credential lifetime, in seconds.
authTokenTtlinteger
Default auth-token lifetime, in seconds.
resetTokenTtlinteger
Default reset-token lifetime, in seconds.
otpRequiredboolean

Specifies if a One-Time Password (OTP) is required to exchange a token.

curl -i -X PUT \
  https://www.rebilly.com/_mock/catalog/all/authentication-options \
  -H 'Content-Type: application/json' \
  -H 'REB-APIKEY: YOUR_API_KEY_HERE' \
  -d '{
    "passwordPattern": "/^[0-9]+$/",
    "credentialTtl": 0,
    "authTokenTtl": 0,
    "resetTokenTtl": 0,
    "otpRequired": true
  }'

Responses

Authentication options updated.
Headers
Rate-Limit-Limitinteger

Maximum number of requests available at one time for this rate limit. For more information, see Rate limits.

Example:500
Rate-Limit-Remaininginteger

Number of requests still available for this rate limit. For more information, see Rate limits.

Example:499
Bodyapplication/json
passwordPatternstring or null
Allowed password pattern.
Example:"/^[0-9]+$/"
credentialTtlinteger
Default credential lifetime, in seconds.
authTokenTtlinteger
Default auth-token lifetime, in seconds.
resetTokenTtlinteger
Default reset-token lifetime, in seconds.
otpRequiredboolean

Specifies if a One-Time Password (OTP) is required to exchange a token.

Response
{ "passwordPattern": "/^[0-9]+$/", "credentialTtl": 0, "authTokenTtl": 0, "resetTokenTtl": 0, "otpRequired": true, "_links": [ { … } ] }