Edit a gen:html sub-composition's inner units
Apply deterministic, LLM-free edits to inner units of a resolved gen:html sub-composition: delete_unit removes the unit's element subtree; hide_unit hides it in place.
The hosted blob is rewritten IMMUTABLY (a new copy is hosted and the scene's resolution swaps to it) — the previous URL is returned so the edit can be reverted. Unit keys come from GET …/genhtml.
Authorization
bearerAuth Typecut API key. Generate one in app.typecut.ai → Settings → API keys. Send as Authorization: Bearer tc_live_….
In: header
Path Parameters
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/scenes/497f6eca-6276-4993-bfeb-53cbbbba6f08/genhtml" \ -H "Content-Type: application/json" \ -d '{ "element_id": "string", "ops": [ { "op": "delete_unit" } ] }'{
"data": {
"scene_id": "string",
"element_id": "string",
"new_url": "string",
"previous_url": "string",
"applied": [
{
"op": "string",
"unit_key": "string"
}
]
}
}{
"error": {
"type": "string",
"code": "string",
"message": "string"
}
}{
"error": {
"type": "string",
"code": "string",
"message": "string"
}
}{
"error": {
"type": "string",
"code": "string",
"message": "string"
}
}Describe a scene's gen:html sub-compositions GET
Return the visual-unit map of every resolved gen:html sub-composition in a scene — the same "what's inside this composition" structure the editor canvas exposes on double-click, but read statically from the hosted blob (no browser).
Everything known about a beat, before you author it GET
Return the authoring envelope for each of a scene's composition elements — what the pipeline's own composition author is told about the beat it is writing.