NylorunDocsBeta
Management APIModels

Set what a catalog model reads

PUT
/v1/tenant/models/inputs

Replaces the inputs the operator added to one catalog model (Tenant setting model.inputs): only those in its addableInputs, which its provider API carries. Its catalog's own inputs always stay; an empty list removes the additions. The agent's harness learns them in turn.start.model and decides how each file reaches the model. A custom endpoint sets settings.inputs on PUT /v1/tenant/model instead.

Authorization

managementKey
headerAuthorizationBearer <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).

Header Parameters

Nylorun-Protocol*string

The protocol version, 18

Request Body

application/json
  1. body
requestId?string
Length1 <= length
provider*string
Length1 <= length
model*string
Length1 <= length
inputs*array<>

Response Body

What the model reads now

application/json
  1. response
provider*string
model*string
inputs*array<>
import { createAdmin } from "@nylorun/admin";const admin = createAdmin();await admin.models.setInputs({  provider: "openai",  model: "gpt-4.1",  inputs: ["pdf"], // added to what its catalog reads});
{  "provider": "string",  "model": "string",  "inputs": [    "text"  ]}