NylorunDocsBeta
Management APISettings

Set the Tenant's artifact limits

PUT
/v1/tenant/artifacts

The largest file one upload may store, and the most bytes all artifacts may hold. Unset limits take the defaults (100 MiB and 10 GiB).

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
limits?
requestId?string
Length1 <= length

Response Body

The limits now in force

application/json
  1. response
limits*
usedBytes*integer
Range0 <= value
import { createAdmin } from "@nylorun/admin";const admin = createAdmin();await admin.settings.artifacts.put({  limits: { fileBytes: 50_000_000 },});
{  "limits": {    "fileBytes": 0,    "totalBytes": 0  },  "usedBytes": 0}