Updating context environment variables during build?

Part of my workflow is to generate user tokens for functional testing but we require a refresh_token which must be updated after each use. I am using an organization “Context” to store environment variables – is it possible to update those values programmatically, even if it’s through the circleci API?

I would love some pointers on what path to take, if there’s a path at all. Thanks.

1 Like

I don’t think that there is an API for contexts just yet.

You can use the API to update project specific environment variables though. For example: How can we change environment variables en masse?

1 Like

Thank you @levlaz, that should do the trick. I can definitely use a project level var just fine.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.