Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

Lock an asset

Returns the `assets.lock` entries and canonical text for the keys the call names, and only those.

This method is not served on the public API. api.sylphx.com does not route this call: its backend is not deployed behind the public API, or does not implement the call. This page documents the contract. It is kept out of the sidebar and of search engines.

Returns the assets.lock entries and canonical text for the keys the call names, and only those. A read with a request body, like a query.

Not available yet. Sylphx Generated Assets is declared in the registry but no backend serves it: every call answers 501 with the problem code UNIMPLEMENTED.

  • Path POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/assets:lock
  • Scope assets:read
  • Effect read — nothing is written.
  • Collection assets

#Request

FieldTypeWhat it is
parentstringThe environment to read from. Required.
keysstring[]The logical keys the code declares, 1 to 5000, each 16 lowercase hex characters. The lock holds only these, so a removed recipe drops out. Required.

#Response

FieldTypeWhat it is
entriesLockEntry[]The lock entries of the keys that have a complete record, sorted by key.
missingstring[]Keys with no record.
incompletestring[]Keys whose stored variants are fewer than wanted, or whose state is neither ready nor approved.
contentstringThe canonical assets.lock text, version 1.

#LockEntry

FieldTypeWhat it is
keystringThe logical key. Output only.
kindAssetKindWhat kind of asset this is. Output only. One of image, sfx, music, video, character, voice.
seedstringThe seed, a decimal integer as a string. Output only.
variantsLockVariant[]The variants, ordered by slot. Output only.

#LockVariant

FieldTypeWhat it is
content_hashstringThe SHA-256 of the file's bytes, 64 lowercase hex characters. Output only.
extstringThe file's extension without the dot. Output only.
media_typestringThe file's media type. Output only.
widthint32Width in pixels. Output only.
heightint32Height in pixels. Output only.
bytesint64The file's size in bytes. Output only.
modelstringThe model that made this variant. Output only.
approved_bystringThe principal that approved the variant; empty when unreviewed. Output only.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/assets:lock" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keys":["…"]}'