Skip to main content
PUT
/
mcp-servers
/
{mcpServerId}
/
user-access
Bulk Update MCP Server User Access
curl --request PUT \
  --url https://api.portkey.ai/v1/mcp-servers/{mcpServerId}/user-access \
  --header 'Content-Type: application/json' \
  --header 'x-portkey-api-key: <api-key>' \
  --data '
{
  "user_access": [
    {
      "user_id": "<string>",
      "enabled": true
    }
  ],
  "default_user_access": "allow"
}
'
{
  "success": true
}

Authorizations

x-portkey-api-key
string
header
required

Path Parameters

mcpServerId
string
required

MCP Server ID (UUID) or slug

Body

application/json
user_access
object[]
default_user_access
enum<string>

Server default when user has no explicit override

Available options:
allow,
deny

Response

200 - application/json

OK

success
boolean
Example:

true

Last modified on February 6, 2026