NylorunDocsBeta
Runtime APIAgentsManifests

Whether the Runtime holds a definition file

HEAD
/v1/files/{file}

200 when the Tenant holds the file, 404 when it does not: upload it.

Authorization

applicationKey
headerAuthorizationBearer <token>

An application key of the Tenant (PUT /v1/tenant/keys/{keyId}), or Studio's key, derived from the admin key. With Nylorun-Subject and Nylorun-Scopes, it acts for that person, narrowed to those scopes. Never accepted from a browser (Origin).

Path Parameters

file*string

sha256: and the SHA-256 of the file's bytes, 64 lowercase hex digits

Header Parameters

Nylorun-Protocol*string

The protocol version, 18

Response Body

The Tenant holds the file

import { createClient } from "@nylorun/agents";const client = await createClient();const held = await client.files.has("sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08");
Empty