ContinuityApp

Create an Environment Variable

Suites can have Environment Variables. Environment Variable will be available during the build session. You can use Environment Variable to provide sensitive data like API access keys, password, and everything you don't want to store into your VCS. We store and encrypt these variables using the AES-256-CBC cipher.

Auth&ACL

Both users and collaborators can access this API, via OAuth suites scope (or HTTP Basic Authentication for development purposes).

Definition

POST https://v1.continuityapp.ws/projects/<project_id>/suites/<suite_id>/environment_variables

Arguments

Arguments    
name Required The variable name (eg: ENVIRONMENT)
content Required The variable content (eg: 'test')

Example request

$ curl https://v1.continuityapp.ws/projects/123456789123456780/suites/123456789123456789/environment_variables?oauth_token=<access_token> \
    -d "name=ENVIRONMENT" \
    -d "content=test" \
    -X POST

Returns

An environment variable will be returned.

Example response

{
  "response": {
    "id": 123456789123456789,
    "id_str": "123456789123456789",
    "name": "ENVIRONMENT",
    "content": "test"
  }
}

Notes

The following variables names are reserved and cannot be used:

  • PATH
  • LDFLAGS
  • CFLAGS
  • CXXFLAGS

Errors

This API has an additional error code available:

Errors    
403 is_reserved The variable name is reserved, and cannot be used.
comments powered by Disqus