---
title: "Create a PasswordPolicy"
method: POST
path: "/api/passwordPolicies"
tags: ["PasswordPolicy"]
---

# Create a PasswordPolicy

`POST /api/passwordPolicies`

Create a PasswordPolicy, available only to company administrators

## Request body

- object
  - `ruleText` string, required — The Password Policy's description, intended for display to the end user.
  - `ruleRegExp` string, required — The Password Policy's regular expression, which must "match" the entered password for it to be considered valid.
  - `companyId` string — The id of the company that this Password Policy belongs to. If not supplied, for a System Admin, defaults to null (global rule for all users/companies). For Company Admin, defaults to the user's companyId. If specified by a Company Admin, it MUST match their own company.

## Response `200`

PasswordPolicy created

- Schema — unresolved $ref

## Other responses

- `400` — Bad request
- `403` — Authenticated user not allowed to perform this operation

---

[API](https://skmtc.dev/cablelabs/apis/lpwan-server.md) · [All operations](https://skmtc.dev/cablelabs/apis/lpwan-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cablelabs/lpwan-server/revisions/a77a7d2af072/schema)
