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
X-RateLimit-Limitinteger

Total number of rate limit tokens for this request within a rate limit period. For more information, see Rate limits.

Example:3600
X-RateLimit-Remaininginteger

Remaining number of rate limit tokens for this request within the rate limit period. For example, in the sandbox environment, rate limits for non-GET endpoints are set at 3000 requests per 10 minutes.

Example:3600
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": [ {} ] }