I understand how to do it from the UI, however is there a way of doing that programmatically, using e.g. a RESTful request or a SBAPI command.
(One of the desired product flows I’m exploring entails creating a workspace if needed and then populating it with a couple of GIs)