App Environment Configuration API
The App Environment Configuration API allows you to manage configuration settings for app environments in Quave ONE, including git branch, health checks, security settings, and environment name.
Make sure to read the Get Started document to understand how the API works.
Note: All endpoints in this API accept both
appEnvIdandenvNameparameters for identifying the environment.
Update Git Branch
Updates the git branch for an app environment. Changing the branch creates pending build changes that require a new build.
Endpoint: PATCH /api/public/v1/app-env/branch
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
appEnvId | String | Either | The ID of the app environment. |
envName | String | Either | The CLI environment name (alternative to appEnvId). |
gitBranch | String | Yes | The git branch name to deploy from (e.g., "main"). |
applyImmediately | Boolean | No | If true, trigger build immediately. Default: false. |
Example
curl -X PATCH \
-H 'Authorization: YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"appEnvId": "5f7b1b7b7b7b7b7b7b7b7b7b",
"gitBranch": "main",
"applyImmediately": true
}' \
https://api.quave.cloud/api/public/v1/app-env/branch
Example Response
{
"success": true,
"message": "Git branch updated and build triggered",
"appEnv": {
"appEnvId": "5f7b1b7b7b7b7b7b7b7b7b7b",
"name": "Production",
"gitBranch": "main"
},
"appliedImmediately": true
}
Notes
- Changing the branch always creates pending build changes (not just deploy changes).
- If
applyImmediately: true, a new build will be triggered from the specified branch.
Update HTTP Probes
Updates the HTTP probes (health check) configuration for an app. Probe settings are app-level and shared across all environments of the app.
Endpoint: PATCH /api/public/v1/app-env/healthcheck
Configuration Modes
The API supports two configuration modes:
- Basic Mode (default): Use a single path for all probes (readiness, liveness, startup)
- Advanced Mode: Configure each probe individually with path, periodSeconds, and failureThreshold
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
appEnvId | String | Either | The ID of the app environment. |
envName | String | Either | The CLI environment name (alternative to appEnvId). |
enableHttpProbes | Boolean | No | Master toggle to enable/disable HTTP probes. |
isConfigurationByProbeEnabled | Boolean | No | Enable advanced mode with individual probe configs. |
healthCheckPath | String | No | Path for basic mode (used for all probes). Set to empty/null to clear. |
healthCheckPort | Number | No | Port to check. If not set, uses app port. Set to null to clear. |
livenessProbe | Object | No* | Liveness probe config. *Required when advanced mode enabled. |
readinessProbe | Object | No* | Readiness probe config. *Required when advanced mode enabled. |
startupProbe | Object | No* | Startup probe config. *Required when advanced mode enabled. |
applyImmediately | Boolean | No | If true, deploy changes immediately. Default: false. |
Probe Object Fields
Each probe object (livenessProbe, readinessProbe, startupProbe) contains:
| Field | Type | Required | Description |
|---|---|---|---|
path | String | Yes | HTTP path to check (e.g., "/health"). |
periodSeconds | Number | Yes | How often to perform the probe (in seconds). |
failureThreshold | Number | Yes | Consecutive failures before taking action. |
Example: Basic Mode (Enable Probes)
curl -X PATCH \
-H 'Authorization: YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"appEnvId": "5f7b1b7b7b7b7b7b7b7b7b7b",
"enableHttpProbes": true,
"healthCheckPath": "/api/health",
"applyImmediately": true
}' \
https://api.quave.cloud/api/public/v1/app-env/healthcheck