# lg_private_endpoints_update: Change or disable a private endpoint

Change a private endpoint: rename it, set its limits or capabilities, or disable it. Its address, model or key, and re-enabling, are a person's in the web app.

- **Changes data:** yes
- **Credential scope:** `gateway:write` (an API key's scopes, or what you allowed when connecting with OAuth)
- **Assistant level:** an assistant at Full; a lower level is refused

## Inputs

| Field | Type | Required | Notes |
|---|---|---|---|
| `id` | string | yes |  |
| `body` | object (name, base_url, upstream_model, key, context_tokens, max_output_tokens, capabilities, disabled) | no |  |
| `body.name` | string | no |  |
| `body.base_url` | string | no | https://host/v1: requests go to {base_url}/chat/completions |
| `body.upstream_model` | string | no |  |
| `body.key` | string or null | no |  |
| `body.context_tokens` | integer | no |  |
| `body.max_output_tokens` | integer | no |  |
| `body.capabilities` | array of "tools" \\| "tool_choice_required" \\| "tool_choice_named" \\| "json_schema" \\| "vision" \\| "temperature_gt_1" | no |  |
| `body.disabled` | boolean | no |  |

## Example MCP call

A `tools/call` request to `https://manage.restolayer.com/mcp`:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "lg_private_endpoints_update",
    "arguments": {
      "id": "pe_01jabcdefghjkmnpqrstvwxyz0",
      "body": {
        "capabilities": [
          "tools"
        ]
      }
    }
  }
}
```

## Example REST call

The same thing over REST (`PATCH /v1/private-endpoints/:id`):

```bash
curl -s -X PATCH "https://manage.restolayer.com/v1/private-endpoints/pe_01jabcdefghjkmnpqrstvwxyz0" \
  -H "Authorization: Bearer $LG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"capabilities":["tools"]}'
```

All tools: [MCP tools](https://www.restolayer.com/docs/mcp/tools). Connecting: [connect your assistant](https://www.restolayer.com/docs/connect).
