User Token Restrictions Create

View for viewing and editing user's API token restrictions.

Request

posthttps://api.cloudsmith.io/v2/user/token/restrictions
Body params optional

Response body

object

object

cidr
string
required
length ≥ 1

Response

Responses

Restriction created

object

object

cidr
string
required
length ≥ 1
slug_perm
slug | null
optional
^[-a-zA-Z0-9_]+$
length ≥ 1

The restriction cannot be created.

object

object

detail
string
required
length ≥ 1

Missing or invalid parameters (see detail).

object

object

detail
string
required
length ≥ 1