Hello everyone, I’m trying to create a remote collection with remote variables to reference another collection created in a different file but I’m failing to accomplish that.
Explaining my scenario:
I’ve created a collection and it’s variables in file one, via API. And now, I have several other files which I’d like to create aliases and reference the variables on the first file.
I can do that manually through the UI, by creating an alias for each variable and pointing it to the variable on my main file. I can also see by querying the theme file with the alias, that a collection with the same id and key, plus a remote=“true” flag, along with the variables are created.
I’ve tried to reproduce this behavior and automate the alias creation by sending these information through the POST variables API, but the remote flag is always false and the IDs I’m sending are being overwritten by new ones, thus losing the reference I’m trying to create.
Is there a way to do what I’m trying to achieve through the API?