# Bug - API v3 - HTTP 409 when setting environment variable even though it does not exist

**URL:** <https://travis-ci.community/t/bug-api-v3-http-409-when-setting-environment-variable-even-though-it-does-not-exist/9877>\
**Category:** Travis CI Discussions & Feedback\
**Created:** [September 10, 2020, 12:02pm UTC](https://travis-ci.community/t/bug-api-v3-http-409-when-setting-environment-variable-even-though-it-does-not-exist/9877 "2020-09-10T12:02:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrissound](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/chrissound/32/5172_2.png) [@chrissound](https://travis-ci.community/u/chrissound)\
**Post date:** [September 10, 2020, 12:02pm UTC](https://travis-ci.community/t/bug-api-v3-http-409-when-setting-environment-variable-even-though-it-does-not-exist/9877/1 "2020-09-10T12:02:51Z")

</div>

```auto
curl --fail -X POST \
  -H "Content-Type: application/json" \
  -H "Travis-API-Version: 3" \
  -H "Authorization: token ****************" \
  -d '{"env_var.name":"SSH_KEY_NODE_INSTANCE","env_var.value":"test123","env_var.branch":"aeuohueotueueost","env_var.public":true}' \ 
  https://api.travis-ci.com/repo/ ****** /env_vars

curl: (22) The requested URL returned error: 409 

```

I get the above http 409 response when trying to create an env var… This seems to be a bug. If I try ANY rando string for the `branch_name` I get the same result.

Still waiting on a response from this from support since yesterday…
