LlmProviderKey

Update LLM Provider's ApiKey

Update LLM Provider's ApiKey. api_key and auth_config are mutually exclusive: setting a valid auth_config on a provider that holds a static api_key clears the stored key; send auth_config as an empty object to clear the recipe and switch back to a static key

patch/v1/private/llm-provider-key/{id}

Path parameters

idstring uuid required

Request body

api_keystring
namestring
provider_namestring

Provider name - can be set to migrate legacy custom LLM or Bedrock providers to the new multi-provider format. Once set, it cannot be changed. Should only be set for custom LLM and Bedrock providers.

headersobject
configurationobject
base_urlstring

Example request

{
  "provider_name": "ollama",
  "auth_config": {
    "token_url": "https://developer.api.example.com/authentication/v1/token",
    "token_field": "access_token",
    "expires_field": "expires_in"
  }
}

Response

No Content

Changes