Models
Set a model provider's credentials
PUT
managementKeyheader
AuthorizationBearer <token>A management key of the Tenant (role management): it reaches the Management API (/v1/tenant/*) and /v1/me, as itself, never for a subject. Issued only on the Tenant's machine (nylorun-operate keys put <id> --role management) or from NYLORUN_MANAGEMENT_KEY_FILE. Never accepted from a browser (Origin).
Nylorun-Protocol*stringThe protocol version, 8
application/json- body
requestId*stringLength
1 <= lengthidempotencyKey*stringLength
1 <= length <= 256provider*stringLength
1 <= lengthmodel*stringLength
1 <= lengthbaseUrl?stringLength
1 <= lengthsettings?auth*|The model now in force
application/json- response
configured*falseValue in
falseimport { createAdmin } from "@nylorun/admin";const admin = createAdmin();await admin.models.put({ idempotencyKey: "model-openai", provider: "openai", model: "gpt-4.1", auth: { type: "api_key", key: process.env.OPENAI_API_KEY! },});{ "configured": false}