---
title: "Update tenant password policy"
method: POST
path: "/tenant/password_policy"
tags: ["Tenant"]
---

# Update tenant password policy

`POST /tenant/password_policy`

## Request

- Base URL: `https://HOSTNAME:8887/api`
- URL: `https://HOSTNAME:8887/api/tenant/password_policy`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/docs/tenant/password_policy/post.ts> (a function with typed inputs; its response is checked against the schema)

Update tenant password policy.

## Request body

- object
  - `min_length` integer: The password must contains at least `min_length` characters. Must be less than or equal the value of `max_length`.
  - `max_length` integer: The password must contains at most `max_length` characters. Must be greater than or equal the value of `min_length`.
  - `contains_letters` boolean: The password must contains at least one letter (latin characters).
  - `contains_numbers` boolean: The password must contains at least one number (0-9).
  - `contains_special_letters` boolean: The password must contains at least one upper case letter or special character (e.g. ~,!,@,#,$,%,^,&,*,(,),_,+,=).
  - `disable_sequential_characters` boolean: The password must not contains sequential_characters.
  - `disable_repeating_characters` boolean: The password must not contains repeating_characters.
  - `disable_account_information` boolean: The password must not similar to the account information.

## Response `200`

OK

## Other responses

- `4XX`: Error

---

[API](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api.md) - [All operations](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/revisions/577415d4a3d5?raw)
