# lg_presets_update: Change a preset (a new version)

Change a preset; the result is saved as a new version and the earlier ones stay.

- **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 (model, models, provider, routing, system_prompt, params) | no |  |
| `body.model` | string or null | no |  |
| `body.models` | array of string or null | no |  |
| `body.provider` | object or null | no |  |
| `body.routing` | object (provider) | no | Same as provider (the console's form) |
| `body.routing.provider` | object | yes |  |
| `body.system_prompt` | string or null | no |  |
| `body.params` | object (temperature, top_p, max_tokens, reasoning_effort, response_format) or null | 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_presets_update",
    "arguments": {
      "id": "support-bot",
      "body": {
        "params": {
          "temperature": 0.2
        }
      }
    }
  }
}
```

## Example REST call

The same thing over REST (`PATCH /v1/presets/:id`):

```bash
curl -s -X PATCH "https://manage.restolayer.com/v1/presets/support-bot" \
  -H "Authorization: Bearer $LG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"params":{"temperature":0.2}}'
```

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