Issues with API on adding an environment variable

It seems the API for creating and updating environment variables has issues.

The main issue at the moment is that sending a site_id is not really understood by the servers, so all env vars are set at the team level.

The docs clearly state the site_id needs to go as query parameter, but doesn’t seem to work.

I’m not sure that body is valid. It should be something like:

  "key": "SOMETHING_COOL",
  "values": [{
    "context": "all",
    "value": "Something Something"

When reporting problems with API, if you mention the response you receive from the API, it would be useful.