Replace an item's group, name, handle, text and images
const url = 'http://localhost:8300/v1/studio/library/example';const options = { method: 'PUT', headers: { 'x-api-key': '<x-api-key>', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"group":"character","name":"example","handle":"example","text":"example","images":[{"take_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}],"loras":[{"lora":{"lora_id":"example"},"strength":1}],"voice":{"design":"example","clip":{"take_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","in":1,"out":1},"consent":true,"language":"example","style":"example"},"voice_id":"example","version":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url http://localhost:8300/v1/studio/library/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-api-key: <x-api-key>' \ --data '{ "group": "character", "name": "example", "handle": "example", "text": "example", "images": [ { "take_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } ], "loras": [ { "lora": { "lora_id": "example" }, "strength": 1 } ], "voice": { "design": "example", "clip": { "take_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "in": 1, "out": 1 }, "consent": true, "language": "example", "style": "example" }, "voice_id": "example", "version": 1 }'Optimistic concurrency like workflows: version is the one the edit started from; stale = 409 element changed since you opened it (now version <n>) (a look: look changed since you opened it (now version <n>)), nothing changes. A look is checked like POST with kind: look (no from_take; from_take_id stays). clip may be changed (checked like POST; from_take_id follows it; a clip needs consent again). element’s voice_id is checked like POST (a stored one that is gone since may be sent back: it saves null). Checked like POST (the handle may stay its own). On success version + 1, updated_at now. Takes made before keep their resolved graph; their reuse answers this element changed. kind never changes. voice required; stale = 409 voice changed since you opened it (now version <n>)); takes made before keep the voice they ran with (made_with.voices records the version).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Library item UUID (malformed = 404)
Request Bodyrequired
Section titled “Request Bodyrequired”Every field (checked like LibraryItemCreate for the item’s kind); an element also needs handle
object
object
A look only; missing = []
object
A Lora value (a rows item field of ref kind Lora): a LoRA the caller can use, by id; never a path, key or URL. Studio checks it when it creates the run.
object
The strength the look applies it at
A designed voice only (required then)
object
Trimmed; must then be 1-2000 characters; a designed voice only
The part of a take to clone (checked as a media param with trim, accepts audio, 3-30 s); not with from_take
object
Required true with a clip: the owner has the right to use this voice
A BCP 47 tag; null or absent = none
Trimmed; must then be at most 500 characters; “” or absent = none
A character element only; missing or null = none (PUT replaces it)
The version the edit started from (409 when stale)
Responses
Section titled “Responses”The item
A library item: one record shape for elements and looks. one whose take was deleted is left out, so a stored item may show 0 images. fits / reason only when the list was asked with workflow.
object
Own: a UUID; starter look: <family>/<pack look id>
Element (character, location, prop; used with @handle); look (film, camera, colour, lighting; chosen from the visual picker, sent as RunRequest.looks); chosen in the voice picker, sent as a voice param’s VoiceRef). Clients show an unknown kind as is
What @ mentions; always set for an element, always null for a look
An element: appended where it is mentioned; a look: appended to the prompt when chosen; empty = none
An element 1-4 when saved, a look 0-4; a starter look none (its picture is only thumb_url)
object
Signed, time-limited link; opaque
The take’s thumbnail (Take.thumb_url)
1 on create, +1 on every PUT; send it back in LibraryItemUpdate. A starter look or voice: the pack’s version
A starter look: the oldest published_at of the live hosts publishing it
A starter look: = created_at
Mine: the caller’s own (id a UUID, editable); starter: a look or a voice shipped by a pack and published by a runner (id <family>/<pack id>, read-only, everyone sees it)
A starter look: its pack’s family (where it comes from; whether it fits is fits); own items: null (any family)
A look’s LoRAs in order; always empty for an element
One LoRA of a look, appended to the look stack at strength when the look is applied
object
Own look: the LoRA’s name now (as recorded when it is gone); starter look: the file name without .safetensors
Computed, in the order text, images, lora: non-empty text, at least one image, at least one LoRA
A look made with “Save as look”: the take; null for every other item)
Only with GET /library?workflow=: whether the item can be applied to that workflow now
With fits: why not (this workflow has no LoRA stack, a voice: voice Ryan is for qwen3-tts); null when it fits
Kind voice only (required then, absent otherwise)
object
Where a saved voice comes from (= its group): preset (a pack’s speaker, a starter voice), cloned, designed
Preset only: the family whose voice params take it
Preset only: the model’s speaker id (ryan, uncle_fu)
Designed only: the voice in words (“male, 17, tenor, nervous”)
A BCP 47 tag (en, en-US, zh, pt-BR); absent = none (the node’s own language param decides)
How it speaks, in words; absent = none
Cloned (required) or designed (optional): the part of a take it clones
object
With clip (required then): the owner ticked “I have the right to use this voice”
An element only (always sent for one, absent otherwise): the voice its @handle speaks in a dialogue script, one of the caller’s voices or a starter voice; null = none (always null for a location or prop, and on read once that voice is deleted or no live host publishes it)
Example
{ "kind": "element", "group": "character", "images": [ { "url": "/files/u/7d1e.../runs/3c9a.../0.png?exp=1767225600&sig=ab12", "thumb_url": "/files/u/7d1e.../runs/3c9a.../0.png?exp=1767225600&sig=ab12" } ], "thumb_url": "/files/u/7d1e.../runs/3c9a.../0.png?exp=1767225600&sig=ab12", "source": "mine", "needs": [ "text" ], "voice": { "source": "preset", "consent": true }}Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token
object
Example generated
{ "detail": "example"}Not found
object
Example generated
{ "detail": "example"}The resource’s state forbids this
object
Example generated
{ "detail": "example"}Invalid input
object
Example generated
{ "detail": "example"}Retryable
object
Example generated
{ "detail": "example"}