Create, rename or delete a scene
livereacting_manage_sceneCreate, rename or delete a scene, chosen with the action argument. action "create" adds an empty scene — it holds no content until you add a layer, so prefer livereacting_create_scene_with_playlist when the scene is meant to play video. action "update" renames a scene and changes nothing else. action "delete" PERMANENTLY REMOVES the scene and every non-pinned layer inside it, including its playlist. There is no undo. Any other layer set to auto-switch into the deleted scene has that link cleared, which silently breaks a 24/7 chain, so the response lists the layers it changed — read it. The last remaining scene cannot be deleted, and deleting the active scene makes the first remaining scene active. Confirm with the customer before deleting anything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Scene name, 1 to 60 characters. Required for "create" and "update". | |
| action | Yes | "create" adds a scene, "update" renames one, "delete" removes it and its layers for good. | |
| sceneId | No | The scene to rename or delete. Required for "update" and "delete", ignored for "create". | |
| projectId | Yes | Project id, from livereacting_list_projects. | |
| setActive | No | "create" only. Make the new scene the active one right away. A project needs an active scene to stream. |