Skip to content

Update the state of an environment

PUT
/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/state
curl --request PUT \
--url https://dashboard.quantcdn.io/api/v3/organizations/test-org/applications/test-app/environments/test-env/state \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "action": "example", "imageTag": "example" }'
organisation
required
string

The organisation ID

Example
test-org
application
required
string

The application ID

Example
test-app
environment
required
string

The environment ID

Example
test-env
Media typeapplication/json
object
action
string
imageTag
string
Examplegenerated
{
"action": "example",
"imageTag": "example"
}

The environment state updated

The environment data is invalid