Skip to main content
POST
Update an environment object

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

organizationId
string
required

The ID of the Organization to which the environment object belongs.

environmentObjectId
string
required

The environment object's ID.

Body

application/json

The request body for updating an environment object.

airflowVariable
object

Whether or not to automatically link Deployments to the environment object. Only applicable for WORKSPACE scope

connection
object
description
string

The description of the environment object

Maximum string length: 500
environmentVariable
object

The links to exclude from the environment object. Only applicable for WORKSPACE scope

The Deployments that Astro links to the environment object. Only applicable for WORKSPACE scope

metricsExport
object

Response

OK

objectKey
string
required

The key for the environment object

objectType
enum<string>
required

The type of environment object

Available options:
CONNECTION,
ENVIRONMENT_VARIABLE,
AIRFLOW_VARIABLE,
METRICS_EXPORT
scope
enum<string>
required

The scope of the environment object

Available options:
WORKSPACE,
DEPLOYMENT
scopeEntityId
string
required

The ID of the scope entity where the environment object is created

setFields
string[]
required

Names of fields that have a value set on the environment object. Secret values are masked in responses, so this list lets clients tell a set secret from an unset field. Map members appear as dotted paths (for example "extra.aws_secret")

airflowVariable
object

Whether or not to automatically link Deployments to the environment object

connection
object
createdAt
string

The time when the environment object was created in UTC, formatted as YYYY-MM-DDTHH:MM:SSZ

createdBy
object
description
string

The description of the environment object

environmentVariable
object

The excluded links for the environment object

id
string

The ID of the environment object

The Deployments linked to the environment object

metricsExport
object
sourceScope
enum<string>

The source scope of the environment object, if it is resolved from a link

Available options:
WORKSPACE,
DEPLOYMENT
sourceScopeEntityId
string

The source scope entity ID of the environment object, if it is resolved from a link

updatedAt
string

The time when the environment object was updated in UTC, formatted as YYYY-MM-DDTHH:MM:SSZ

updatedBy
object