Skip to Content
Docs
API referenceManagement API

Password policy

Get password policy

GET
/authn/password-policy

Get the instance's password policy. If none has been configured, the default policy is returned.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Response Body

OK

application/json
  1. response
created_at?string
history_size?integer
max_age_days?integer
min_length?integer
object?string
require_digits?boolean
require_lowercase?boolean
require_special_chars?boolean
require_uppercase?boolean
updated_at?string
Example Request
curl -X GET 'https://api.us.pontive.com/v1/authn/password-policy'
Example Response
{  "created_at": "string",  "history_size": 0,  "max_age_days": 0,  "min_length": 0,  "object": "string",  "require_digits": true,  "require_lowercase": true,  "require_special_chars": true,  "require_uppercase": true,  "updated_at": "string"}

Update password policy

PATCH
/authn/password-policy

Patch the instance's password policy. Omitted fields are left unchanged.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Header Parameters

If-Match?string

The ETag the document was read with: a stale one is refused 412 precondition_failed (D42)

Request Body

Update payload

application/json
  1. body

Update payload

history_size?integer
max_age_days?integer
min_length?integer
require_digits?boolean
require_lowercase?boolean
require_special_chars?boolean
require_uppercase?boolean

Response Body

OK

application/json
  1. response
created_at?string
history_size?integer
max_age_days?integer
min_length?integer
object?string
require_digits?boolean
require_lowercase?boolean
require_special_chars?boolean
require_uppercase?boolean
updated_at?string
Example Request
curl -X PATCH 'https://api.us.pontive.com/v1/authn/password-policy' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "created_at": "string",  "history_size": 0,  "max_age_days": 0,  "min_length": 0,  "object": "string",  "require_digits": true,  "require_lowercase": true,  "require_special_chars": true,  "require_uppercase": true,  "updated_at": "string"}

Reset password policy

DELETE
/authn/password-policy

Delete the stored password policy, resetting it to the default. A subsequent GET returns the default policy.

Authorization

headerx-pontive-instance-id<token>

Instance ID for the request

Header Parameters

If-Match?string

The ETag the document was read with: a stale one is refused 412 precondition_failed (D42)

Response Body

No Content

Example Request
curl -X DELETE 'https://api.us.pontive.com/v1/authn/password-policy'
Example Response
Empty