am currently trying to update an environment variable in a context in my organisation and according to the api reference: CircleCI API it says it is required that my context id has to be part of the path in the request.
but i have been unable to find it, the documentation does not throw any light on finding these id’s.
its there a way i can get it?
if possible, please i need help.
Contexts have little documentation about their API usage. The small section on using them via the CLI does help a little as the CLI is using the API and so there is a mapping between the two.
I get the feeling that the writers of the API are the main users of the API and so are not dependent on their structure or supporting docs.
Taking all of the above into account it seems that to get context ID you have to
Use the ‘List contexts API’ call to scan all the defined contexts under your account and look for the one you wish to modify. The name you are looking for will be the text name of the Context as listed via the GUI under Organization Settings.
Use the ID from the first step to call “Add or update an environment variable”