Create Password Policy

JFrog REST APIs

Content Type
REST API

Description: Creates a new password policy. This REST API overwrites all existing field values: if a value is not specified, its default value will be set to 0.

Since: Artifactory 7.125.3

Security: Requires a valid admin-scoped token.

Usage: PUT /access/api/v1/config/security/password_policy

Produces: application/json

Sample Query:

curl --location --request PUT 'http://localhost:8082/access/api/v1/config/security/password_policy' \
--header 'Content-Type: application/json' \
--header 'Authorization: ••••••' \
--data '{
    "length":10,
    "uppercase":2,
    "special_char": 2,
    "digit" : 2,
    "lowercase":2
}'

Sample Response:

204 Success

Response Codes:

204 Success

404 Not found (URL might be wrong)

400 Bad request (the request body might be empty or PasswordPolicy validation failed)

500 Internal Server Error