NylorunDocsBeta
Management APITenant

Seed the Tenant's configuration

PUT
/v1/tenant/config/seed

Sets each setting the Tenant does not have yet; keeps the ones it has.

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, 8

Request Body

application/json
  1. body
requestId*string
Length1 <= length
sandbox?
model?
fixtureModel?true
Value intrue

Response Body

What was set, and what was kept

application/json
  1. response
applied*array<string>
kept*array<string>
import { createAdmin } from "@nylorun/admin";const admin = createAdmin();await admin.tenant.seed({ fixtureModel: true });
{  "applied": [    "string"  ],  "kept": [    "string"  ]}