跳转到主要内容
PATCH
PATCH /admin/api/mcp-scopes/{id}

授权

gproxy_session
string
cookie
必填

请求头

x-gproxy-admin-scope
string

Administrative scope selected by the caller.

路径参数

id
string
必填

请求体

application/json

The subject of a rule does not change; delete the rule and write another.

action
string | null
priority
integer<int32> | null
scope
string | null

响应

Success

action
string
必填

allow or deny.

apiKeyId
string | null
必填
id
string
必填
priority
integer<int32>
必填

Higher wins; at one priority a refusal wins.

scope
string
必填

mcp:<server>:<tool>; either part may be *, the tool part may be @read, @write or @destructive, and mcp:* is everything.

userId
string | null
必填

The rule's subject: exactly one of the two is set.