I am trying to load filenames via the request URL.
The command in question is:
POST /composition/layers/{layer-index}/clips/{clip-index}/open
but I am struggling on where to insert my file directory in the string.
the API document gives me the following request URL:
"http://192.168.187.205:8080/api/v1/comp ... ips/1/open"
But this does not have the file location.
Does this have to be done via Curl?
Loading Video Filenames via API.
-
- Posts: 8
- Joined: Fri Jan 26, 2024 23:53
- Location: Berlin, Germany
Re: Loading Video Filenames via API.
You need to send the file directory string as a text/plain POST request to that API endpoint, you don't insert it anywhere. Anything that can send HTTP requests can be used, cURL is only a very popular tool for this purpose :)
-
- Posts: 5
- Joined: Mon Mar 03, 2025 16:42
Re: Loading Video Filenames via API.
Sorry if I was not clear. I need to add the filename to the HTML string. but no matter where I put it. I get an error.
Example:
POST /composition/layers/{layer-index}/clips/{clip-index}/open file:///C:/Users/Resolume/Video.mp4
This returns an error that the file cannot be found and i need to use file:// or media://
but I know the file is there and the test function in the API web interface works fine.
Example:
POST /composition/layers/{layer-index}/clips/{clip-index}/open file:///C:/Users/Resolume/Video.mp4
This returns an error that the file cannot be found and i need to use file:// or media://
but I know the file is there and the test function in the API web interface works fine.
-
- Posts: 8
- Joined: Wed Jan 04, 2023 04:14
Re: Loading Video Filenames via API.
When making a POST request, the request will have a URL and a separate body (that is, the data you're sending *to* the URL). So in this case the filename doesn't go anywhere in the URL.
A simple cURL command might be something like:
A simple cURL command might be something like:
Code: Select all
curl -X POST http://192.168.187.205:8080/api/v1/composition/layers/1/clips/1/open --data "file:///C:/Users/Resolume/Video.mp4"
-
- Posts: 1
- Joined: Thu Apr 10, 2025 03:44
- Location: https://blockblast-game.io
Re: Loading Video Filenames via API.
A POST request will have a URL and a distinct body, which is the data you are sending *to* the URL. In this instance, the filename appears nowhere in the URL.