---
title: "Add a new or update an existing policy."
method: POST
path: "/sys/policy/{name}"
tags: ["system"]
---

# Add a new or update an existing policy.

`POST /sys/policy/{name}`

## Request body

- SystemPolicyRequest
  - `policy` string — The rules of the policy.
  - `rules` string — The rules of the policy.

## Response `200`

OK

---

[API](https://skmtc.net/lensesio/apis/hashicorp-vault-api.md) · [All operations](https://skmtc.net/lensesio/apis/hashicorp-vault-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lensesio/hashicorp-vault-api/versions/bd8194de0697/schema)
