Environments (Deprecated)

Deprecated
get

DEPRECATED: Use GET /api/v1/collection/:idOrSlug instead. Describe Environment with associated cloud accounts (legacy environment endpoint).

🔒 Requires the read:collection permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idOrSlugstringRequired

The environment's ID or slug e.g. f27d96be-c486-4075-a926-0ee96775119e or my-environment

Responses
chevron-right
200

Information about the environment

application/json

Information about the environment

idstring · uuidRequired

The environment's ID e.g. f27d96be-c486-4075-a926-0ee96775119e

slugstringRequired

The environment's slug e.g. my-environment

namestringRequired

The environment name e.g. Production Europe

Example: Production Europe
colorstringRequired

The environment color code e.g. #0000ff

Example: #0000ffPattern: ^#(?:[0-9a-fA-F]{3}){1,2}$
allow_pre_releasebooleanRequired

Whether the environment allows pre-release deployments e.g. false

Example: false
is_defaultbooleanRequired

Whether the environment is the default for the organization e.g. true

is_activebooleanRequired

Indicate if the environment is active e.g. true

is_deletedbooleanRequired

Indicate if the environment was deleted e.g. true

createdstring · date-timeRequiredDeprecated

The date and time the resource was created e.g. 2022-01-01T00:00:00.000Z

approval_policybooleanRequired

Whether the environment requires approval for install or uninstall e.g. false

Example: false
cost_quotanumber · min: 1Optional

Maximum allowed total cost for all deployments in this environment in USD e.g. 1000.50

Example: 1000.5
current_costnumberOptionalDeprecated

Current total cost for all deployments in this environment in USD e.g. 1000.50

Example: 1000.5
get
/api/v1/environment/{idOrSlug}
Deprecated
delete

DEPRECATED: Use DELETE /api/v1/collection/:idOrSlug instead. Delete an environment from the organization (legacy environment endpoint).

🔒 Requires the delete:collection permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idOrSlugstringRequired

The environment's ID or slug e.g. f27d96be-c486-4075-a926-0ee96775119e or my-environment

Responses
chevron-right
200

Updated information about the environment

application/json

Updated information about the environment

idstring · uuidRequired

The environment's ID e.g. f27d96be-c486-4075-a926-0ee96775119e

slugstringRequired

The environment's slug e.g. my-environment

namestringRequired

The environment name e.g. Production Europe

Example: Production Europe
colorstringRequired

The environment color code e.g. #0000ff

Example: #0000ffPattern: ^#(?:[0-9a-fA-F]{3}){1,2}$
allow_pre_releasebooleanRequired

Whether the environment allows pre-release deployments e.g. false

Example: false
is_defaultbooleanRequired

Whether the environment is the default for the organization e.g. true

is_activebooleanRequired

Indicate if the environment is active e.g. true

is_deletedbooleanRequired

Indicate if the environment was deleted e.g. true

createdstring · date-timeRequiredDeprecated

The date and time the resource was created e.g. 2022-01-01T00:00:00.000Z

cloud_accountstring · nullableOptional

The cloud account ID e.g. 12345678-1234-1234-1234-123456789012

delete
/api/v1/environment/{idOrSlug}
Deprecated
post

DEPRECATED: Use POST /api/v1/collection instead. Create an environment for deploying blueprints (legacy environment endpoint).

🔒 Requires the create:collection permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
namestringRequired

The environment name e.g. Production Europe

Example: Production Europe
colorstringOptional

The environment color code e.g. #0000ff

Example: #0000ffPattern: ^#(?:[0-9a-fA-F]{3}){1,2}$
defaultbooleanOptional

Whether the environment is the default for the organization e.g. true

Responses
chevron-right
200

Information about created environment

application/json

Information about created environment

idstring · uuidRequired

The environment's ID e.g. f27d96be-c486-4075-a926-0ee96775119e

slugstringRequired

The environment's slug e.g. my-environment

namestringRequired

The environment name e.g. Production Europe

Example: Production Europe
colorstringRequired

The environment color code e.g. #0000ff

Example: #0000ffPattern: ^#(?:[0-9a-fA-F]{3}){1,2}$
allow_pre_releasebooleanRequired

Whether the environment allows pre-release deployments e.g. false

Example: false
is_defaultbooleanRequired

Whether the environment is the default for the organization e.g. true

is_activebooleanRequired

Indicate if the environment is active e.g. true

is_deletedbooleanRequired

Indicate if the environment was deleted e.g. true

createdstring · date-timeRequiredDeprecated

The date and time the resource was created e.g. 2022-01-01T00:00:00.000Z

cloud_accountstring · nullableOptional

The cloud account ID e.g. 12345678-1234-1234-1234-123456789012

post
/api/v1/environment
Deprecated
put

DEPRECATED: Use PUT /api/v1/collection instead. Enable an environment (legacy environment endpoint).

🔒 Requires the update:collection permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
or
Responses
chevron-right
200

Updated information about the environment

application/json

Updated information about the environment

idstring · uuidRequired

The environment's ID e.g. f27d96be-c486-4075-a926-0ee96775119e

slugstringRequired

The environment's slug e.g. my-environment

namestringRequired

The environment name e.g. Production Europe

Example: Production Europe
colorstringRequired

The environment color code e.g. #0000ff

Example: #0000ffPattern: ^#(?:[0-9a-fA-F]{3}){1,2}$
allow_pre_releasebooleanRequired

Whether the environment allows pre-release deployments e.g. false

Example: false
is_defaultbooleanRequired

Whether the environment is the default for the organization e.g. true

is_activebooleanRequired

Indicate if the environment is active e.g. true

is_deletedbooleanRequired

Indicate if the environment was deleted e.g. true

createdstring · date-timeRequiredDeprecated

The date and time the resource was created e.g. 2022-01-01T00:00:00.000Z

cloud_accountstring · nullableOptional

The cloud account ID e.g. 12345678-1234-1234-1234-123456789012

put
/api/v1/environment
Deprecated
delete

DEPRECATED: Use DELETE /api/v1/collection instead. Disable an environment (legacy environment endpoint).

🔒 Requires the delete:collection permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
or
Responses
chevron-right
200

Updated information about the environment

application/json

Updated information about the environment

idstring · uuidRequired

The environment's ID e.g. f27d96be-c486-4075-a926-0ee96775119e

slugstringRequired

The environment's slug e.g. my-environment

namestringRequired

The environment name e.g. Production Europe

Example: Production Europe
colorstringRequired

The environment color code e.g. #0000ff

Example: #0000ffPattern: ^#(?:[0-9a-fA-F]{3}){1,2}$
allow_pre_releasebooleanRequired

Whether the environment allows pre-release deployments e.g. false

Example: false
is_defaultbooleanRequired

Whether the environment is the default for the organization e.g. true

is_activebooleanRequired

Indicate if the environment is active e.g. true

is_deletedbooleanRequired

Indicate if the environment was deleted e.g. true

createdstring · date-timeRequiredDeprecated

The date and time the resource was created e.g. 2022-01-01T00:00:00.000Z

cloud_accountstring · nullableOptional

The cloud account ID e.g. 12345678-1234-1234-1234-123456789012

delete
/api/v1/environment
Deprecated
put

DEPRECATED: Use PUT /api/v1/collection/:idOrSlug/default instead. Change default environment for the organization (legacy environment endpoint).

🔒 Requires the update:collection permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idOrSlugstringRequired

The environment's ID or slug e.g. f27d96be-c486-4075-a926-0ee96775119e or my-environment

Responses
chevron-right
200

Updated information about the environment

application/json

Updated information about the environment

idstring · uuidRequired

The environment's ID e.g. f27d96be-c486-4075-a926-0ee96775119e

slugstringRequired

The environment's slug e.g. my-environment

namestringRequired

The environment name e.g. Production Europe

Example: Production Europe
colorstringRequired

The environment color code e.g. #0000ff

Example: #0000ffPattern: ^#(?:[0-9a-fA-F]{3}){1,2}$
allow_pre_releasebooleanRequired

Whether the environment allows pre-release deployments e.g. false

Example: false
is_defaultbooleanRequired

Whether the environment is the default for the organization e.g. true

is_activebooleanRequired

Indicate if the environment is active e.g. true

is_deletedbooleanRequired

Indicate if the environment was deleted e.g. true

createdstring · date-timeRequiredDeprecated

The date and time the resource was created e.g. 2022-01-01T00:00:00.000Z

cloud_accountstring · nullableOptional

The cloud account ID e.g. 12345678-1234-1234-1234-123456789012

put
/api/v1/environment/{idOrSlug}/default
Deprecated
patch

DEPRECATED: Use PATCH /api/v1/collection/:idOrSlug/edit instead. Update environment properties such as color code, name, pre-release status, or associated users. Note: The slug remains unchanged even if the name is updated (legacy environment endpoint).

🔒 Requires the update:collection permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idOrSlugstringRequired

The environment's ID or slug e.g. f27d96be-c486-4075-a926-0ee96775119e or my-environment

Body
namestringOptional

The environment name e.g. Production Europe

Example: Production Europe
colorstringOptional

The environment color code e.g. #0000ff

Example: #0000ffPattern: ^#(?:[0-9a-fA-F]{3}){1,2}$
allow_pre_releasebooleanOptional

Whether the environment allows pre-release deployments e.g. false

Example: false
cost_quotanumber · min: 1Optional

Maximum allowed total cost for all deployments in this environment in USD e.g. 1000.50

Example: 1000.5
Responses
chevron-right
200

Updated information about the environment

application/json

Updated information about the environment

idstring · uuidRequired

The environment's ID e.g. f27d96be-c486-4075-a926-0ee96775119e

slugstringRequired

The environment's slug e.g. my-environment

namestringRequired

The environment name e.g. Production Europe

Example: Production Europe
colorstringRequired

The environment color code e.g. #0000ff

Example: #0000ffPattern: ^#(?:[0-9a-fA-F]{3}){1,2}$
allow_pre_releasebooleanRequired

Whether the environment allows pre-release deployments e.g. false

Example: false
is_defaultbooleanRequired

Whether the environment is the default for the organization e.g. true

is_activebooleanRequired

Indicate if the environment is active e.g. true

is_deletedbooleanRequired

Indicate if the environment was deleted e.g. true

createdstring · date-timeRequiredDeprecated

The date and time the resource was created e.g. 2022-01-01T00:00:00.000Z

cloud_accountstring · nullableOptional

The cloud account ID e.g. 12345678-1234-1234-1234-123456789012

cost_quotanumber · min: 1Optional

Maximum allowed total cost for all deployments in this environment in USD e.g. 1000.50

Example: 1000.5
patch
/api/v1/environment/{idOrSlug}/edit
Deprecated
put

DEPRECATED: Use PUT /api/v1/collection/:idOrSlug/clone instead. Clone an existing environment with properties and policies (legacy environment endpoint).

🔒 Requires the create:collection permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idOrSlugstringRequired

The environment's ID or slug e.g. f27d96be-c486-4075-a926-0ee96775119e or my-environment

Body
namestringRequired

The environment name e.g. Production Europe

Example: Production Europe
Responses
chevron-right
200

Information about cloned environment

application/json

Information about cloned environment

idstring · uuidRequired

The environment's ID e.g. f27d96be-c486-4075-a926-0ee96775119e

slugstringRequired

The environment's slug e.g. my-environment

namestringRequired

The environment name e.g. Production Europe

Example: Production Europe
colorstringRequired

The environment color code e.g. #0000ff

Example: #0000ffPattern: ^#(?:[0-9a-fA-F]{3}){1,2}$
allow_pre_releasebooleanRequired

Whether the environment allows pre-release deployments e.g. false

Example: false
is_defaultbooleanRequired

Whether the environment is the default for the organization e.g. true

is_activebooleanRequired

Indicate if the environment is active e.g. true

is_deletedbooleanRequired

Indicate if the environment was deleted e.g. true

createdstring · date-timeRequiredDeprecated

The date and time the resource was created e.g. 2022-01-01T00:00:00.000Z

cloud_accountstring · nullableOptional

The cloud account ID e.g. 12345678-1234-1234-1234-123456789012

put
/api/v1/environment/{idOrSlug}/clone
Deprecated
get

DEPRECATED: Use GET /api/v1/collection/:idOrSlug/props instead. List environment properties (legacy environment endpoint).

🔒 Requires the read:collection permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idOrSlugstringRequired

The environment's ID or slug e.g. f27d96be-c486-4075-a926-0ee96775119e or my-environment

Responses
chevron-right
200

List of environment properties

application/json

List of environment properties

get
/api/v1/environment/{idOrSlug}/props
Deprecated
post

DEPRECATED: Use POST /api/v1/collection/:idOrSlug/props instead. Create environment props (legacy environment endpoint).

🔒 Requires the update:collection permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idOrSlugstringRequired

The environment's ID or slug e.g. f27d96be-c486-4075-a926-0ee96775119e or my-environment

Bodyobject[]

List of new environment properties

namestringRequired

The property name e.g. max_size

Example: max_size
contentstringRequired

The property value or content e.g. 10

Example: 10
is_enforcedbooleanOptional

Indicates whether the environment property takes precedence over any provided value e.g. true

Default: falseExample: true
Responses
chevron-right
200

Updated environment properties

application/json

Updated environment properties

post
/api/v1/environment/{idOrSlug}/props
Deprecated
put

DEPRECATED: Use PUT /api/v1/collection/:idOrSlug/props instead. Update environment props (legacy environment endpoint).

🔒 Requires the update:collection permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idOrSlugstringRequired

The environment's ID or slug e.g. f27d96be-c486-4075-a926-0ee96775119e or my-environment

Bodyobject[]

List of updated environment properties

idstring · uuidOptional

The property ID e.g. 123e4567-e89b-12d3-a456-426614174000

namestringRequired

The property name e.g. max_size

Example: max_size
contentstringRequired

The property value or content e.g. 10

Example: 10
is_enforcedbooleanOptional

Indicates whether the environment property takes precedence over any provided value e.g. true

Default: falseExample: true
Responses
chevron-right
200

Updated environment properties

application/json

Updated environment properties

put
/api/v1/environment/{idOrSlug}/props
Deprecated
delete

DEPRECATED: Use DELETE /api/v1/collection/:idOrSlug/props instead. Delete environment props (legacy environment endpoint).

🔒 Requires the update:collection permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idOrSlugstringRequired

The environment's ID or slug e.g. f27d96be-c486-4075-a926-0ee96775119e or my-environment

Bodystring[]
string[]Optional
Responses
chevron-right
200

Updated environment props

application/json

Updated environment props

delete
/api/v1/environment/{idOrSlug}/props
Deprecated
get

DEPRECATED: Use GET /api/v1/collection/:idOrSlug/blueprints instead. List packages allowed to be deployed in the environment (legacy environment endpoint).

🔒 Requires the read:package permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idOrSlugstringRequired

The environment's ID or slug e.g. f27d96be-c486-4075-a926-0ee96775119e or my-environment

Query parameters
offsetnumberOptional

Results offset to allow pagination e.g. 10

Default: 0Example: 10
limitnumber · max: 1000Optional

Results limit to allow pagination, e.g. 50

Default: 20Example: 10
searchstringOptional

Enables searching within the list for package names that match a particular query e.g. sns

Responses
chevron-right
200

List of packages allowed in the environment

application/json

List of packages allowed in the environment

totalnumberRequired
get
/api/v1/environment/{idOrSlug}/blueprints
Deprecated
get

DEPRECATED: Use GET /api/v1/collection/:idOrSlug/settings/secrets instead. List environment secrets (legacy environment endpoint).

🔒 Requires the read:secret permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idOrSlugstringRequired

The environment's ID or slug e.g. f27d96be-c486-4075-a926-0ee96775119e or my-environment

Responses
chevron-right
200

List of environment secrets

application/json

List of environment secrets

get
/api/v1/environment/{idOrSlug}/settings/secrets
Deprecated
post

DEPRECATED: Use POST /api/v1/collection/:idOrSlug/settings/secrets instead. Create environment secrets (legacy environment endpoint).

🔒 Requires the create:secret permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idOrSlugstringRequired

The environment's ID or slug e.g. f27d96be-c486-4075-a926-0ee96775119e or my-environment

Bodyobject[]

List of new environment-scoped secrets

keystringRequired

The secret key e.g. API_TOKEN

Example: API_TOKEN
valuestringRequired

The secret encrypted value e.g. ERJZ7ZOJcNpQEAvrb6wPOA==

Example: ERJZ7ZOJcNpQEAvrb6wPOA==
Responses
chevron-right
200

Updated environment secrets

application/json

Updated environment secrets

post
/api/v1/environment/{idOrSlug}/settings/secrets
Deprecated
put

DEPRECATED: Use PUT /api/v1/collection/:idOrSlug/settings/secrets instead. Update environment secrets (legacy environment endpoint).

🔒 Requires the update:secret permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idOrSlugstringRequired

The environment's ID or slug e.g. f27d96be-c486-4075-a926-0ee96775119e or my-environment

Bodyobject[]

List of updated environment-scoped secrets

idstring · uuidOptional

The secret ID e.g. 123e4567-e89b-12d3-a456-426614174000

keystringRequired

The secret key e.g. API_TOKEN

Example: API_TOKEN
valuestringRequired

The secret encrypted value e.g. ERJZ7ZOJcNpQEAvrb6wPOA==

Example: ERJZ7ZOJcNpQEAvrb6wPOA==
Responses
chevron-right
200

Updated environment secrets

application/json

Updated environment secrets

put
/api/v1/environment/{idOrSlug}/settings/secrets
Deprecated
delete

DEPRECATED: Use DELETE /api/v1/collection/:idOrSlug/settings/secrets instead. Delete environment secrets (legacy environment endpoint).

🔒 Requires the delete:secret permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idOrSlugstringRequired

The environment's ID or slug e.g. f27d96be-c486-4075-a926-0ee96775119e or my-environment

Bodystring[]
string[]Optional

List of secret keys to delete within the environment

Responses
chevron-right
200

Updated environment secrets

application/json

Updated environment secrets

delete
/api/v1/environment/{idOrSlug}/settings/secrets
Deprecated
get

DEPRECATED: Use GET /api/v1/collection/settings/secrets instead. List available environment secrets for the user's organization (legacy environment endpoint).

🔒 Requires the read:collection permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
sortstring · enumOptional

Specifies the attribute by which the returned list should be sorted ' + 'e.g. name

Default: created_atPossible values:
orderstringOptional

Specifies the order - ascending or descending - by which the returned list should be sorted e.g. ASC

offsetnumberOptional

Results offset to allow pagination e.g. 10

Default: 0Example: 10
limitnumberOptional

Results limit to allow pagination, e.g. 50

Default: 20Example: 10
filterstringOptional

Structure: [key1=value1,key2=value2&value3]

searchstringOptional

Enables searching within the list for Secret Keys that match a particular query e.g. api_key

Responses
chevron-right
200

List of available environment secrets

application/json

List of available environment secrets

totalnumberRequired
get
/api/v1/environment/settings/secrets
Deprecated
put

DEPRECATED: Use PUT /api/v1/collection/:idOrSlug/settings/policies instead. Update environment policies (legacy environment endpoint).

🔒 Requires the update:collection permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idOrSlugstringRequired

The environment's ID or slug e.g. f27d96be-c486-4075-a926-0ee96775119e or my-environment

Bodyobject · EnvironmentPolicyUpdate[]

List of environment policies to update

policystring · enumRequired

The name of the policy

Example: require_owner_approvalPossible values:
enablebooleanRequired

Whether to enable or disable the policy

Responses
chevron-right
200

Updated policy information

application/json

Updated policy information

policystring · enumOptional

The name of the policy

Example: require_owner_approvalPossible values:
enablebooleanOptional

Current policy state after update

put
/api/v1/environment/{idOrSlug}/settings/policies
Deprecated
get

DEPRECATED: Use GET /api/v1/collections instead. List available environments for the user's organization (legacy environment endpoint).

🔒 Requires the read:collection permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
allbooleanOptional

If false, return active environments only. If true, return all environments

offsetnumberOptional

Results offset to allow pagination e.g. 10

Default: 0Example: 10
orderstringOptional

Specifies the order - ascending or descending - by which the returned list should be sorted e.g. ASC

filterstringOptional

Structure: [key1=value1,key2=value2&value3]

limitnumberOptional

Results limit to allow pagination, e.g. 50

Default: 20Example: 10
sortstring · enumOptional

Specifies the attribute by which the returned list should be sorted ' + 'e.g. name

Default: createdPossible values:
searchstringOptional

Enables searching within the list for environment names that match a particular query e.g. prod

Responses
chevron-right
200

List of available deployment environments

application/json

List of available deployment environments

totalnumberRequired
get
/api/v1/environments
Deprecated
get

DEPRECATED: Use GET /api/v1/collections/props instead. List available Environment properties of an organization (legacy environment endpoint).

🔒 Requires the read:collection permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
offsetnumberOptional

Results offset to allow pagination e.g. 10

Default: 0Example: 10
orderstringOptional

Specifies the order - ascending or descending - by which the returned list should be sorted e.g. ASC

filterstringOptional

Structure: [key1=value1,key2=value2&value3]

limitnumberOptional

Results limit to allow pagination, e.g. 50

Default: 20Example: 10
sortstring · enumOptional

Specifies the attribute by which the returned list should be sorted ' + 'e.g. name

Default: created_atPossible values:
searchstringOptional

Enables searching within the list for environment names that match a particular query

packagestringOptional

The package name with version e.g. @bluebricks/aws-vpc@1.2.3

Example: @bluebricks/aws-vpc@1.2.3
Responses
chevron-right
200

List of available Environment properties of an organization

application/json

List of available Environment properties of an organization

totalnumberRequired
get
/api/v1/environments/props
Deprecated
post

DEPRECATED: Use POST /api/v1/collections/:collectionIdOrSlug/cloud/:cloudId instead. Assign a cloud account to an environment (legacy environment endpoint).

🔒 Requires the update:collection permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
envIdOrSlugstringRequired

The environment's ID or slug e.g. f27d96be-c486-4075-a926-0ee96775119e or my-environment

cloudIdstring · uuidRequired

The cloud ID to associate with the collection e.g. 86a6e0b9-65e4-49cc-8d40-ce5dcfbf4eb6

Example: f27d96be-c486-4075-a926-0ee96775119f
Body
is_primarybooleanOptional

Indicate if the cloud is going to be the one used for provisioning in the associated environment

Default: false
profilestringOptional

Profile is a named configuration of a specific cloud account

Example: secrets-manager
Responses
chevron-right
200

Updated environment

application/json

Updated environment

idstring · uuidRequired

The environment's ID e.g. f27d96be-c486-4075-a926-0ee96775119e

slugstringRequired

The environment's slug e.g. my-environment

namestringRequired

The environment name e.g. Production Europe

Example: Production Europe
colorstringRequired

The environment color code e.g. #0000ff

Example: #0000ffPattern: ^#(?:[0-9a-fA-F]{3}){1,2}$
allow_pre_releasebooleanRequired

Whether the environment allows pre-release deployments e.g. false

Example: false
is_defaultbooleanRequired

Whether the environment is the default for the organization e.g. true

is_activebooleanRequired

Indicate if the environment is active e.g. true

is_deletedbooleanRequired

Indicate if the environment was deleted e.g. true

createdstring · date-timeRequiredDeprecated

The date and time the resource was created e.g. 2022-01-01T00:00:00.000Z

post
/api/v1/environments/{envIdOrSlug}/cloud/{cloudId}
Deprecated
post

DEPRECATED: Use POST /api/v1/collections/:collectionIdOrSlug/cloud/secondary/:cloudId instead. Assign a secondary cloud account to an environment (legacy environment endpoint).

🔒 Requires the update:collection permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
envIdOrSlugstringRequired

The environment's ID or slug e.g. f27d96be-c486-4075-a926-0ee96775119e or my-environment

cloudIdstring · uuidRequired

The cloud ID to associate with the collection e.g. 86a6e0b9-65e4-49cc-8d40-ce5dcfbf4eb6

Example: f27d96be-c486-4075-a926-0ee96775119f
Body
profilestringRequired

Profile is a named configuration of a specific cloud account

Example: secrets-manager
Responses
chevron-right
200

Updated environment

application/json

Updated environment

idstring · uuidRequired

The environment's ID e.g. f27d96be-c486-4075-a926-0ee96775119e

slugstringRequired

The environment's slug e.g. my-environment

namestringRequired

The environment name e.g. Production Europe

Example: Production Europe
colorstringRequired

The environment color code e.g. #0000ff

Example: #0000ffPattern: ^#(?:[0-9a-fA-F]{3}){1,2}$
allow_pre_releasebooleanRequired

Whether the environment allows pre-release deployments e.g. false

Example: false
is_defaultbooleanRequired

Whether the environment is the default for the organization e.g. true

is_activebooleanRequired

Indicate if the environment is active e.g. true

is_deletedbooleanRequired

Indicate if the environment was deleted e.g. true

createdstring · date-timeRequiredDeprecated

The date and time the resource was created e.g. 2022-01-01T00:00:00.000Z

post
/api/v1/environments/{envIdOrSlug}/cloud/secondary/{cloudId}
Deprecated
delete

DEPRECATED: Use DELETE /api/v1/collections/:collectionId/cloud/:cloudId instead. Dissociate cloud id from environment (legacy environment endpoint).

🔒 Requires the update:collection permission

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
envIdstring · uuidRequired

The environment's ID e.g. f27d96be-c486-4075-a926-0ee96775119e

cloudIdstring · uuidRequired
Responses
chevron-right
200

Updated environment

application/json

Updated environment

idstring · uuidRequired

The environment's ID e.g. f27d96be-c486-4075-a926-0ee96775119e

cloud_accountstring · uuidRequired
messagestringRequired
delete
/api/v1/environments/{envId}/cloud/{cloudId}

Last updated

Was this helpful?