API referenceManagement API
Password policy
GET
Get the instance's password policy. If none has been configured, the default policy is returned.
header
x-pontive-instance-id<token>Instance ID for the request
OK
application/json- response
created_at?stringhistory_size?integermax_age_days?integermin_length?integerobject?stringrequire_digits?booleanrequire_lowercase?booleanrequire_special_chars?booleanrequire_uppercase?booleanupdated_at?stringcurl -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"}PATCH
Patch the instance's password policy. Omitted fields are left unchanged.
header
x-pontive-instance-id<token>Instance ID for the request
If-Match?stringThe ETag the document was read with: a stale one is refused 412 precondition_failed (D42)
Update payload
application/json- body
Update payload
history_size?integermax_age_days?integermin_length?integerrequire_digits?booleanrequire_lowercase?booleanrequire_special_chars?booleanrequire_uppercase?booleanOK
application/json- response
created_at?stringhistory_size?integermax_age_days?integermin_length?integerobject?stringrequire_digits?booleanrequire_lowercase?booleanrequire_special_chars?booleanrequire_uppercase?booleanupdated_at?stringcurl -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"}DELETE
Delete the stored password policy, resetting it to the default. A subsequent GET returns the default policy.
header
x-pontive-instance-id<token>Instance ID for the request
If-Match?stringThe ETag the document was read with: a stale one is refused 412 precondition_failed (D42)
No Content
curl -X DELETE 'https://api.us.pontive.com/v1/authn/password-policy'Example Response
Empty