Deny Policy

Deny Policy Update

Update a package deny policy.

Request

puthttps://api.cloudsmith.io/v1/orgs/{org}/deny-policy/{slug_perm}
Body params optional

Response body

object

object

description
string | null
optional
length ≤ 250
enabled
boolean
optional
name
string | null
optional
length ≤ 100
package_query_string
string
required
length ≥ 1

Response

Responses

OK

object

object

action
string
optional
Allowed values: Block downloads
Defaults to Block downloads
created_at
date-time
optional
description
string | null
optional
length ≤ 250
enabled
boolean
optional
name
string | null
optional
length ≤ 100
package_query_string
string
required
length ≥ 1
slug_perm
slug
optional
^[-a-zA-Z0-9_]+$
length ≥ 1
status
string
optional
Allowed values: Pending, In Progress, Complete, Cancelled, Errored
Defaults to In Progress
updated_at
date-time
optional

Request could not be processed (see detail).

object

object

detail
string
required
length ≥ 1
fields
object
optional

Missing or invalid parameters (see detail).

object

object

detail
string
required
length ≥ 1
fields
object
optional