Page 1 of 1

REST API: Open source with space in name

Posted: Fri Aug 02, 2024 16:37
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!

Re: REST API: Open source with space in name

Posted: Sun Aug 04, 2024 11:26
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

Re: REST API: Open source with space in name

Posted: Mon Aug 05, 2024 15:30
by mogpt
Ah I missed that! Thank you for the reply