Create environment variable via API

Hello,

Can I create a environment variable on a project through the CircleCI api?

You sure can! Check out this doc: https://circleci.com/docs/api/#add-environment-variable

1 Like

Yeah but does it work? here’s my recent post: Environment variable rest api does not appear to work hopefully I am doing something wrong and can get a tip on what I might be doing wrong?