Modify App
Update the configuration or metadata of a specific app.
Authorizations
Service Account Token authentication. To authenticate API requests:
-
Create a Service Account Token:
- Go to the Cerebrium Dashboard and open the API Keys page
- Click Create Service Account, name it (e.g., "GitHub Actions CI/CD"), choose an expiry date, and click Create
- Copy the token generated for the desired service account
-
Use the Token: Include the service account token in the Authorization header of API requests:
Authorization: Bearer <your-service-account-token> -
Best Practices:
- Create separate service accounts for different environments (dev, staging, prod)
- Store tokens securely as secrets in consuming applications or workflows
- Set appropriate expiry dates and rotate tokens regularly
- Never commit tokens to source control
For CI/CD integration examples, see the CI/CD documentation.
Body
Verbatim contents of the cerebrium.toml configuration file.
Compute type(s) for the app, in priority order. A single value or a list of up to 5. Valid values: ADA_L4, ADA_L40, AMPERE_A10, AMPERE_A100_40GB, AMPERE_A100_80GB, HOPPER_H100, HOPPER_H200, BLACKWELL_B200, BLACKWELL_RTX6000, CPU, INF2, TRN1, TURING_T4.
Compute tier for the app. Valid values: interruptible, protected.
Container runtime version. Valid values: v1, v2.
Cooldown period in seconds before an idle replica scales down. Range: 1-3600.
Number of CPU cores to allocate, as a string value.
Maximum time in seconds to wait for a deployment to initialize. Range: 60-900.
Disable authentication on the app endpoint.
Command to start a custom runtime app, as a list of strings.
Interval in seconds between autoscaling evaluations. Range: 6-300.
Number of GPUs allocated. Range: 0-8.
HTTP endpoint used to check that a custom runtime app is healthy.
Load balancing algorithm. Valid values: round-robin, first-available, min-connections, random-choice-2.
Maximum number of replicas. Range: 1-2000.
Memory allocation in GB, as a string value.
Minimum number of replicas. Range: 0-2000.
Port the app listens on. Range: 0-65535.
HTTP endpoint used to check that a custom runtime app is ready to receive traffic.
Maximum concurrent requests per replica. Range: 1-1000000.
Grace period in seconds for in-flight requests when a replica stops. Range: 16-43200.
Duration in seconds over which to roll out a new version. Range: 1-21600.
App runtime. Valid values: cortex, custom.
Number of extra replicas to keep available beyond current demand. Must be >= 0.
Metric used for autoscaling. Valid values: cpu_utilization, memory_utilization, requests_per_second, concurrency_utilization.
Target value for the scaling metric. Must be > 0.
Response
Confirmation that the app update was accepted.
The app configuration after the update is applied, including appId, projectId, hardware, cpu, memory, gpuCount, scaling settings, runtime settings, and region.
Status message for the update.
URL of the updated app resource.
Whether the update request was accepted.