REST API: Open source with space in name

FFGL, OSC, GLSL. If you like abbreviations, this is the forum for you
Post Reply
mogpt
Posts: 6
Joined: Wed Apr 06, 2016 12:16

REST API: Open source with space in name

Post by mogpt »

Does anyone know the correct syntax to open a source into a clip that has a space in the source's name? I'm trying to load a text block source into a clip but can't get it to work.

I'm using the endpoint:

Code: Select all

/composition/clips/by-id/{clip-id}/open
and have tried a bunch of different variations for the body value such as:

Code: Select all

source:///video/TextBlock
source:///video/Textblock
source:///video/Text_Block
source:///video/Text\ Block
But none of these seem to work. Using a source that doesn't have a space in it's name like

Code: Select all

source:///video/Checkered
works fine.

Thank you!

yannick.fullrez
Posts: 8
Joined: Fri Jan 26, 2024 23:53
Location: Berlin, Germany

Re: REST API: Open source with space in name

Post by yannick.fullrez »

Hello, this one is easy: special characters are to be encoded using URL-encoding. There's good documentation about everything ;)

Source: https://resolume.com/docs/restapi/#/cli ... open_by_id

mogpt
Posts: 6
Joined: Wed Apr 06, 2016 12:16

Re: REST API: Open source with space in name

Post by mogpt »

Ah I missed that! Thank you for the reply

Post Reply