🚀 Introducing Agent Gateway — governance, observability, and control for your AI agents.  Register for live webinar ↗
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
}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
}Documentation Index
Fetch the complete documentation index at: https://docs.portkey.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
MCP Server ID (UUID) or slug
OK
true
Was this page helpful?