POST
/
v2
/
apps
/
{appId}
/
envs
Add/Edit Environment Variables
curl --request POST \
  --url https://api.squarecloud.app/v2/apps/{appId}/envs \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "envs": {}
}'
{
  "status": "success",
  "response": {
    "TEST": "myTest"
  }
}
Authorization
string
required

The API key for your account. You can find this in your account settings.

appId
string
required

The application ID.

envs
object
required

The key and value of environment variables.

Response

status
string

Indicates whether the call was successful. success if successful, error if not.

response
object

The key and value of all environment variables you defined.

{
  "status": "success",
  "response": {
    "TEST": "myTest"
  }
}