Update Environment Compose Definition
  PUT /api/v3/organizations/{organisation}/applications/{application}/environments/{environment}    
 Replaces the entire task definition for the environment based on the provided multi-container compose definition. This will create a new task definition revision and update the ECS service, triggering a redeployment. Optionally accepts minCapacity and maxCapacity at the root level for convenience.
Authorizations
Parameters
Path Parameters
The organisation ID
The application ID
The environment ID
Request Body required
object
object
object
Name of the container
object
Specifies whether the image is internal (ECR) or external (e.g., Docker Hub)
The image identifier. For ‘internal’ type, this is the image tag. For ‘external’ type, this is the full image name.
Container-level CPU units
Container-level memory hard limit (MiB)
Container-level memory soft limit (MiB)
List of container ports to expose
object
The name of the logical volume
The path inside the container where the volume is mounted
Environment variables specific to this container
object
Environment variable name
Environment variable value
Secrets mapped to environment variables
object
The environment variable name to be set in the container
The key of the secret in the environment’s ‘app-secrets’ store
Container health check configuration
object
The command to run to determine if the container is healthy
Time period (seconds) between health checks
Time period (seconds) to wait for a health check to return
Number of times to retry a failed health check
Grace period (seconds) to ignore unhealthy checks after container starts
Container startup dependencies
object
The name of the container this container depends on
The condition to wait for on the dependency
Enable origin protection for all exposed ports on this container
Optional. Minimum number of tasks for auto-scaling. If provided at root level, will be merged into composeDefinition.
Optional. Maximum number of tasks for auto-scaling. If provided at root level, will be merged into composeDefinition.
Responses
202
Request accepted, compose definition update is processing.
400
Invalid compose definition or validation failed.
object
object
404
Application or environment not found
