Engine REST load scene

adishin

Well-known member
We are building a web based app API to control some viz scenes
in our tests we load scenes as described in the REST documentation using POST
while the scene is loaded, the REST server returens an error:
"Parse Error: The response has a duplicate "Content-Length" header"
we send:
Code:
curl --location 'http://localhost:9557/api/v1/scene' \
--header 'Content-Type: application/json' \
--data '"36740037-946A-6D47-A174-C140D3AF4B9E"'

the documentation say:
/api/v1/scene
POST ... Adds a new scene to the pool
Example Body: "A0A3A936-7114-4566-BA13BCB90096F947"
question is:
is there something wrong here, if yes, what?
 
Do you send an "Accept: application/json" header?
I don't know much about curl but when I tried it in postman i got a response: "201 Created".
1739951628690.png
 
Is there a way to use the Engines Rest API to trigger the console and send a command?
I've been trying to do kind of the same thing and managed to load the scene using http://ENGINE.IP:pORT/api/v1/scene
{ "scene:" "SCENE UUID" } as payload, but im stuck on sending the commands to the renderer to CUE, START etc.
I am using an opensource CMS called "Directus" which runs on a docker container that allows me to store my assets and using another batch script i forward my images to the graphics hub watchfolder therefore i can have custom API links to filter my data and get relations and so on..
I am not a programmer, i just found this tool and implement it as a personal project but i saw a lot of potential since i can limit access to user on what to change and basically not mess my excel files all the time and also give access to multiple users changing images text and so forth. Screenshot 2025-03-30 150042.png
 

Attachments

  • Screenshot 2025-03-30 150042.png
    Screenshot 2025-03-30 150042.png
    84.2 KB · Views: 2
Back
Top