Skip to content

Reference

lg_provider_keys_update: Rename or disable a provider key

Markdown version

Change one of the organization's provider keys: rename or disable it. Adding, re-enabling and deleting one are done by a person 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

FieldTypeRequiredNotes
idstringyes
bodyobject (label, disabled, weight)no
body.labelstringno
body.disabledbooleanno
body.weightintegerno

Example MCP call

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

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "lg_provider_keys_update",
    "arguments": {
      "id": "bk_01jabcdefghjkmnpqrstvwxyz0",
      "body": {
        "disabled": true
      }
    }
  }
}

Example REST call

The same thing over REST (PATCH /v1/provider-keys/:id):

curl -s -X PATCH "https://manage.restolayer.com/v1/provider-keys/bk_01jabcdefghjkmnpqrstvwxyz0" \
  -H "Authorization: Bearer $LG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"disabled":true}'

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.