---
title: "Edits a policy"
method: PUT
path: "/policy/{packageName}"
tags: ["Policy"]
---

# Edits a policy

`PUT /policy/{packageName}`

## Path parameters

- `packageName` string, required

## Request body

- PolicyEdit
  - `activeVersion` string — Active version of the policy; must be an exact semver
  - `title` string — Policy title for displaying to users in the dashboard/Vincent Explorer UI
  - `description` string — Policy description - displayed to users in the dashboard/Vincent Explorer UI

## Response `200`

Successful operation

- Policy
  - `_id` string, required — Document ID
  - `updatedAt` string, date-time, required — Timestamp when this was last modified
  - `createdAt` string, date-time, required — Timestamp when this was created
  - `packageName` string, required — Policy NPM package name
  - `authorWalletAddress` string, required — Author wallet address. Derived from the authorization signature provided by the creator.
  - `description` string, required — Policy description - displayed to users in the dashboard/Vincent Explorer UI
  - `activeVersion` string, required — Active version of the policy; must be an exact semver
  - `title` string, required — Policy title for displaying to users in the dashboard/Vincent Explorer UI

## Other responses

- `400` — Invalid input
- `422` — Validation exception
- `default` — Unexpected error

## Changes

- **2025-06-28** `f36ee26d6286` — 1 info
  - the response required property `authorWalletAddress` became read-only for the status `200`
- **2025-06-28** `f7b25b5b140b` — 3 info
  - the endpoint scheme security `siweAuth` was added to the API
  - api tag `Policy` added
  - api tag `policy` removed
- **2025-06-24** `a04696325550` — 1 info
  - the response required property `authorWalletAddress` became not read-only for the status `200`
- **2025-06-24** `27ae1265cdb9` — 1 warning
  - removed the request property `packageName`
- **2025-06-24** `d4634804dbfb` — 1 breaking, 1 warning, 5 info
  - added the new required request property `packageName`
  - removed the request property `policyTitle`
  - added the new optional request property `title`
  - the request property `activeVersion` became optional
  - …3 more

[Full history](https://skmtc.dev/lit-protocol/apis/vincent-registry-api/changes/policy/:packageName/put.md)

---

[API](https://skmtc.dev/lit-protocol/apis/vincent-registry-api.md) · [All operations](https://skmtc.dev/lit-protocol/apis/vincent-registry-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/lit-protocol/vincent-registry-api/revisions/7a8a3bcdf96f/schema)
