Skip to content

Create Env

POST
/services/{uuid}/envs

Create env by service UUID.

Authorizations

Parameters

Path Parameters

uuid
required
string format: uuid

UUID of the service.

Request Body required

Env created.

object
key

The key of the environment variable.

string
value

The value of the environment variable.

string
is_preview

The flag to indicate if the environment variable is used in preview deployments.

boolean
is_build_time

The flag to indicate if the environment variable is used in build time.

boolean
is_literal

The flag to indicate if the environment variable is a literal, nothing espaced.

boolean
is_multiline

The flag to indicate if the environment variable is multiline.

boolean
is_shown_once

The flag to indicate if the environment variable’s value is shown on the UI.

boolean

Responses

201

Environment variable created.

object
uuid
string
nc0k04gk8g0cgsk440g0koko

400

Invalid token.

object
message
string
Invalid token.

401

Unauthenticated.

object
message
string
Unauthenticated.

404

Resource not found.

object
message
string
Resource not found.