Solved : REST API (learning) troubles
Posted: Sat Nov 18, 2023 16:48
Hi everyone,
I have been working with the REST API in Resolume.
I use the official http://127.0.0.1:8080/api/docs/rest/ to test.
The specific problem I have is that I get the JSON file from the endpoint "/composition/clips/selected" just fine with a GET, and I verified in a few JSON checkers.
HOWEVER, when I do the reverse, and I input that JSON file back to "/composition/clips/selected" but with PUT, I get an error :
I am assuming I am doing something wrong here, but I am curious what that wrong is 
I also noticed in the dashboard example, that it has an endpoint "/parameter/by-id/#" , but is not documented in the SwaggerUI example.
I have been working with the REST API in Resolume.
I use the official http://127.0.0.1:8080/api/docs/rest/ to test.
The specific problem I have is that I get the JSON file from the endpoint "/composition/clips/selected" just fine with a GET, and I verified in a few JSON checkers.
HOWEVER, when I do the reverse, and I input that JSON file back to "/composition/clips/selected" but with PUT, I get an error :
Code: Select all
error reading field "selected": This field is read-only

I also noticed in the dashboard example, that it has an endpoint "/parameter/by-id/#" , but is not documented in the SwaggerUI example.