Setting and retrieving environment variables for an OC application


Setting environment variables
Anytime you make this call, the given environment variables replace the currently existing ones. If you want to add variables to the existing variables, you must first retrieve them and add to it and set it back again.

curl -X POST
     -H "Authorization: Bearer <thy_api_key>" \
     -d '<request_body_json>'<thy_appid>

Request body JSON format

     "variables": [
          { "key": "STRING", "value": "STRING" }, 
          { "key": "STRING", "value": "STRING" },

Request body parameters explained
key – The name of the variable.
value – The value of the variable.

Retrieving environment variables

curl -X GET
     -H "Authorization: Bearer <thy_api_key>" \<thy_appid>