User Token Restrictions Update

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

Request

puthttps://api.cloudsmith.io/v2/user/token/restrictions/{token}
Body params optional

Response body

object

object

cidr
string
required
length ≥ 1

Response

Responses

Updated the restriction successfully.

object

object

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

Invalid data.

object

object

detail
string
required
length ≥ 1

Restriction not found.

object

object

detail
string
required
length ≥ 1

Missing or invalid parameters (see detail).

object

object

detail
string
required
length ≥ 1