Skip to main content
PATCH
Update a role

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

roleId
string
required

Body

application/json
allow
(string | object)[]
Maximum array length: 32
Maximum string length: 176
Pattern: ^tool:(\*|(builtin|managed|workspace):(\*|[a-z0-9][a-z0-9_-]{0,31}\.\*|[a-z0-9][a-z0-9_-]{0,31}\.[A-Za-z0-9][A-Za-z0-9_.-]{0,127}))$
deny
string[]

Bare built-in tool patterns removed from broader allows. Each pattern must select at least one current built-in tool; external namespaces are not deniable in v1.

Maximum array length: 32
Maximum string length: 176
Pattern: ^tool:(\*|(builtin|managed|workspace):(\*|[a-z0-9][a-z0-9_-]{0,31}\.\*|[a-z0-9][a-z0-9_-]{0,31}\.[A-Za-z0-9][A-Za-z0-9_.-]{0,127}))$
description
string
Maximum string length: 1024
name
string
Maximum string length: 128

Response

Updated role.

role
object
required