Skip to main content
PATCH
Modify App

Authorizations

Authorization
string
header
required

Service Account Token authentication. To authenticate API requests:

  1. 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
  2. Use the Token: Include the service account token in the Authorization header of API requests: Authorization: Bearer <your-service-account-token>

  3. 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.

Path Parameters

project_id
string
required
app_id
string
required

Body

application/json
cerebrium_toml
string

Verbatim contents of the cerebrium.toml configuration file.

compute
array

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.

computeTier
string

Compute tier for the app. Valid values: interruptible, protected.

containerRuntime
string

Container runtime version. Valid values: v1, v2.

cooldownPeriodSeconds
integer

Cooldown period in seconds before an idle replica scales down. Range: 1-3600.

cpu
string

Number of CPU cores to allocate, as a string value.

deploymentInitializationTimeout
integer

Maximum time in seconds to wait for a deployment to initialize. Range: 60-900.

disableAuth
boolean

Disable authentication on the app endpoint.

entrypoint
array

Command to start a custom runtime app, as a list of strings.

evaluationIntervalSeconds
integer

Interval in seconds between autoscaling evaluations. Range: 6-300.

gpuCount
integer

Number of GPUs allocated. Range: 0-8.

healthcheckEndpoint
string

HTTP endpoint used to check that a custom runtime app is healthy.

loadBalancingAlgorithm
string

Load balancing algorithm. Valid values: round-robin, first-available, min-connections, random-choice-2.

maxReplicaCount
integer

Maximum number of replicas. Range: 1-2000.

memory
string

Memory allocation in GB, as a string value.

minReplicaCount
integer

Minimum number of replicas. Range: 0-2000.

port
integer

Port the app listens on. Range: 0-65535.

readycheckEndpoint
string

HTTP endpoint used to check that a custom runtime app is ready to receive traffic.

replicaConcurrency
integer

Maximum concurrent requests per replica. Range: 1-1000000.

responseGracePeriodSeconds
integer

Grace period in seconds for in-flight requests when a replica stops. Range: 16-43200.

rollOutDurationSeconds
integer

Duration in seconds over which to roll out a new version. Range: 1-21600.

runtime
string

App runtime. Valid values: cortex, custom.

scalingBuffer
integer

Number of extra replicas to keep available beyond current demand. Must be >= 0.

scalingMetric
string

Metric used for autoscaling. Valid values: cpu_utilization, memory_utilization, requests_per_second, concurrency_utilization.

scalingTarget
integer

Target value for the scaling metric. Must be > 0.

Response

Confirmation that the app update was accepted.

app
object

The app configuration after the update is applied, including appId, projectId, hardware, cpu, memory, gpuCount, scaling settings, runtime settings, and region.

message
string

Status message for the update.

self
string

URL of the updated app resource.

success
boolean

Whether the update request was accepted.