---
title: "Creates new policy"
method: POST
path: "/rest/api/v1/governance/data/policies"
tags: ["Governance"]
---

# Creates new policy

`POST /rest/api/v1/governance/data/policies`

Creates a new policy with specified specifications and returns its id.

## Response `200`

OK

## Other responses

- `403` — Permissions error
- `500` — Internal error

## Changes

- **2026-06-22** `08c17c9175d0` — 1 info
  - the endpoint scheme security `APIToken` was added to the API
- **2026-06-21** `b162fb37b3ad` — 1 info
  - the endpoint scheme security `APIToken` was removed from the API
- **2026-06-20** `d1f1d35ae0f9` — 1 info
  - the endpoint scheme security `APIToken` was added to the API
- **2026-06-19** `f00aa572acd3` — 1 info
  - the endpoint scheme security `APIToken` was removed from the API
- **2026-06-15** `a43309a19757` — 2 info
  - added the new optional request property `config/allowlistOptions/regexes`
  - added the optional property `report/config/allowlistOptions/regexes` to the response with the `200` status

[Full history](https://skmtc.dev/gleanwork/apis/glean-api/changes/rest/api/v1/governance/data/policies/post.md)

---

[API](https://skmtc.dev/gleanwork/apis/glean-api.md) · [All operations](https://skmtc.dev/gleanwork/apis/glean-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/gleanwork/glean-api/revisions/dea698d545aa/schema)
