Skip to main content
PATCH
Update API Key Access

Authorizations

next-auth.session-token
string
cookie
required

Signed-in OpenLIT browser session.

Path Parameters

id
string
required

The API key ID (not the secret value).

Body

application/json
scopes
enum<string>[] | null
required

null for full access, or the features the key may use.

Minimum array length: 1

A feature an API key can use: ingest (OTLP telemetry ingestion), telemetry (/api/telemetry/*, /api/metrics/*), prompts (/api/prompt/*), vault (/api/vault/*), rule_engine (/api/rule-engine/*), evaluation (/api/evaluation/*), chat (/api/chat/*), controller (/api/controller/*), db_config (/api/db-config*).

Available options:
ingest,
telemetry,
prompts,
vault,
rule_engine,
evaluation,
chat,
controller,
db_config
Example:

Response

The key's updated access.

id
string
scopes
enum<string>[] | null

A feature an API key can use: ingest (OTLP telemetry ingestion), telemetry (/api/telemetry/*, /api/metrics/*), prompts (/api/prompt/*), vault (/api/vault/*), rule_engine (/api/rule-engine/*), evaluation (/api/evaluation/*), chat (/api/chat/*), controller (/api/controller/*), db_config (/api/db-config*).

Available options:
ingest,
telemetry,
prompts,
vault,
rule_engine,
evaluation,
chat,
controller,
db_config