Skip to content

Reference

lg_presets_update: Change a preset (a new version)

Markdown 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

FieldTypeRequiredNotes
idstringyes
bodyobject (model, models, provider, routing, system_prompt, params)no
body.modelstring or nullno
body.modelsarray of string or nullno
body.providerobject or nullno
body.routingobject (provider)noSame as provider (the console's form)
body.routing.providerobjectyes
body.system_promptstring or nullno
body.paramsobject (temperature, top_p, max_tokens, reasoning_effort, response_format) or nullno

Example MCP call

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

{
  "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):

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. Connecting: connect your assistant.

Send feedback

Tell us what's broken, confusing or missing on this page, or an idea. It goes to the team that builds the product.
Please don't include passwords or card numbers.
Only to reply about this. Never added to any mailing list.