Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Send Authorization: Bearer <api_key>. The legacy Authorization: Api-Key <api_key> scheme is also accepted.

Path Parameters

chain_id
string
required

Body

application/json

A request to create a custom environment for a chain.

name
string
required

Name of the environment

Example:

"staging"

promotion_settings
UpdatePromotionSettingsV1 · object | null

Promotion settings for the environment

Example:
chainlet_settings
ChainletEnvironmentSettingsRequestV1 · object[] | null

Mapping of chainlet name to the desired chainlet environment settings

Example:

Response

200 - application/json

Environment for oracles.

name
string
required

Name of the environment

created_at
string<date-time>
required

Time the environment was created in ISO 8601 format

chain_id
string
required

Unique identifier of the chain

promotion_settings
PromotionSettingsV1 · object
required

Promotion settings for the environment

chainlet_settings
ChainletEnvironmentSettingsV1 · object[]
required

Environment settings for the chainlets

current_deployment
ChainDeploymentV1 · object | null
required

Current chain deployment of the environment

candidate_deployment
ChainDeploymentV1 · object | null

Candidate chain deployment being promoted to the environment, if a promotion is in progress