POST
/
applications
/
{uuid}
/
envs
curl --request POST \
  --url https://app.coolify.io/api/v1/applications/{uuid}/envs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "<string>",
  "value": "<string>",
  "is_preview": true,
  "is_build_time": true,
  "is_literal": true,
  "is_multiline": true,
  "is_shown_once": true
}'
{
  "uuid": "nc0k04gk8g0cgsk440g0koko"
}

Authorizations

Authorization
string
header
required

Go to Keys & Tokens / API tokens and create a new token. Use the token as the bearer token.

Path Parameters

uuid
string
required

UUID of the application.

Body

application/json

Env created.

The body is of type object.

Response

201
application/json

Environment variable created.

The response is of type object.