---
title: "Partially update a package deny policy."
method: PATCH
path: "/orgs/{org}/deny-policy/{slug_perm}/"
tags: ["orgs"]
---

# Partially update a package deny policy.

`PATCH /orgs/{org}/deny-policy/{slug_perm}/`

Partially update a package deny policy.

## Request body

- PackageDenyPolicyRequestPatch
  - `description` string, nullable
  - `enabled` boolean — Whether this rule is enabled or disabled.
  - `name` string, nullable
  - `package_query_string` string — Packages that match this query will trigger this deny rule.

## Response `200`

OK

- PackageDenyPolicy
  - `action` 'Block downloads'
  - `created_at` string, date-time
  - `description` string, nullable
  - `enabled` boolean — Whether this rule is enabled or disabled.
  - `name` string, nullable
  - `package_query_string` string, required — Packages that match this query will trigger this deny rule.
  - `slug_perm` string, slug
  - `status` 'Pending' | 'In Progress' | 'Complete' | 'Cancelled' | 'Errored'
  - `updated_at` string, date-time

## Other responses

- `400` — Request could not be processed (see detail).
- `422` — Missing or invalid parameters (see detail).

---

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