---
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
  - `deploymentStatus` 'dev' | 'test' | 'prod' — Identifies if a policy is in development, test, or production.

## 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
  - `deploymentStatus` 'dev' | 'test' | 'prod' — Identifies if a policy is in development, test, or production.
  - `isDeleted` boolean — Whether or not this Policy is deleted

## Other responses

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

## Changes

- **2025-07-02** `cfdc102dddd1` — 1 info
  - added the optional property `isDeleted` to the response with the `200` status
- **2025-07-02** `433f98e35cde` — 2 breaking
  - the `description` request property's minLength was increased from `0` to `10`
  - the `title` request property's minLength was increased from `0` to `2`
- **2025-06-29** `dc8cacfac551` — 2 info
  - added the new optional request property `deploymentStatus`
  - added the optional property `deploymentStatus` to the response with the `200` status
- **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

[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/cfdc102dddd1/schema)
