Skip to main content
PATCH
/
api
/
mcp-servers
/
{mcpServerId}
/
approval-policy
Update approval policy
curl --request PATCH \
  --url http://localhost:8080/api/mcp-servers/{mcpServerId}/approval-policy \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --header 'X-API-SECRET: <api-key>' \
  --data '
{
  "approval_policy": "require_approval_all"
}
'
{
  "message": "Approval policy updated successfully",
  "status": "success",
  "error": null,
  "data": {
    "id": "mcp_016e64b3-7782-45ca-87be-3fc343b8242e",
    "organization_id": "org_2zC2v0GqxbrfKq1rKazb3gFcPEq",
    "name": "Test MCP Server",
    "approval_policy": "require_approval_all",
    "updated_at": 1751401459476
  }
}

Authorizations

X-API-KEY
string
header
required

API Key for MCP server and external service authentication

X-API-SECRET
string
header
required

API Secret for MCP server and external service authentication

Path Parameters

mcpServerId
string
required

MCP server ID

Example:

"mcp_016e64b3-7782-45ca-87be-3fc343b8242e"

Body

application/json
approval_policy
string
required

auto_approve_all | require_approval_all | auto_approve_read_only

Response

Approval policy updated successfully

message
string
status
string
error
string | null
data
object