Getting context-id of current session



I am working on a feature in the Neurorobotics Platform that allows users to control experiments from the collab’s Jupyter Notebook.

There’s a REST call that I would like to use, that saves the experiment results to the collab storage. To use this REST call, however, the context-id is required. I was wondering whether there is an api that will allow me to get the context-id of the current session.



It turns out that the context-id was not required in the REST call. It was listed as a requirement but it can actually be inferred from the simulation-id.