Skip to main content
PATCH
Update password policy (PATCH)

Authorizations

Authorization
string
header
required

Use a valid Bearer token to authenticate.

Path Parameters

id
string
required

Password policy ID. Example: 6710d4f6e4b0a91d2c3f8e55

Body

application/json
name
string
required

Policy name. Example: Strict Office

Required string length: 4 - 30
minimumLength
integer
required

Minimum password length. Example: 10

Required range: x >= 6
complexity
integer
required

How many of the four character kinds (uppercase, lowercase, number, symbol) a password must contain. Example: 3

Required range: 1 <= x <= 4
expiration
integer
required

Days until a password expires. -1 = never. 0 is not allowed. Example: 90

Required range: x >= -1
expirationNotificationDays
integer
required

Days before expiry to start warning the user. Example: 7

Required range: x >= 1
minimumDuration
integer
required

Days a password must be kept before it can be changed again. -1 = no minimum. 0 is not allowed. Example: 1

Required range: x >= -1
accountLockout
integer
required

Failed sign-in attempts before the account is locked. Example: 5

Required range: x >= 1
accountLockoutDuration
integer
required

Minutes the account stays locked. -1 = until an admin unlocks it. 0 is not allowed. Example: 30

Required range: x >= -1
passwordHistory
integer
required

How many previous passwords cannot be reused. Example: 3

Required range: x >= 1

Response

Success

status
boolean

Status of response.

data
object

Password policy.