PUT
Update an add-on

Authorizations

Authorization
string
header
required

Bearer token for authentication. Format: 'Bearer {token}'

Headers

X-Workspace-Id
string

Workspace ID (uses default workspace if not provided)

Path Parameters

uuid
string
required

Application UUID

id
string
required

Add-on ID or UUID

Body

application/json

Update an add-on

label
string

Human-readable display name for the add-on

ram_size
number<float>

RAM allocation in MiB (e.g., 64, 128, 256). On a resource only; a workload on Usage Billing or in the workspace pool takes size.

disk_size
number<float>

Disk storage in GiB (e.g., 1, 5, 10). It only grows: a size below the current one, or under 100 MiB, is refused. Refused on storage mounted from a shared storage service, which is resized on the service.

cpu_size
number<float>

CPU allocation in cores (e.g., 0.1, 0.25, 0.5). On a resource only; a workload on Usage Billing or in the workspace pool takes size.

size
string

With billing pay_per_use or workspace_pool, one of the size codes from GET /api/v1/workspace/pay_per_use/sizes, e.g. hobby-1c-2g. cpu_size and ram_size are refused for such a workload.

public_access
boolean

Enable public internet access. Accepts true/false or '1'/'0'. For postgres type.

backup_enabled
boolean

Enable automatic backups. Accepts true/false or '1'/'0'. Applied to the cluster asynchronously: GET backups reports backup_active once it takes effect. For postgres type.

scheduled_backup
string

Cron expression for backup schedule (6-field: second minute hour day month weekday). For postgres type.

instances
enum<integer>

Number of database instances (1 for standalone, 3/5/7 for HA cluster). For postgres type.

Available options:
1,
3,
5,
7
auto_sleep
boolean

For a PostgreSQL database that is not a replica, on Usage Billing. A database on an application never sleeps on its own: true (the default) hibernates it whenever its application sleeps and wakes it with it, false keeps it running while the application sleeps.

Response

Update an add-on

Api_V1_Entities_Addon model

uuid
string
required

Add-on UUID

name
string
required

Add-on name

type
string
required

Add-on type (postgres, mysql, valkey, storage, cronjob)

label
string
required

Display name

state
string
required

Current state. While provisioning: pending, processing, creating, stopped. Once running, the live Kubernetes status: healthy (postgres/mysql/valkey), bound (storage), or running when the status is unavailable. Unhealthy: degraded, degradated, failing, lost, crashloopbackoff, failed

quota
object
required

Raw resource quota row, with ram_size and disk_size in bytes. Use ram_size, disk_size and cpu_size for the values accepted by POST and PUT /apps/{uuid}/addons

ram_size
number<float>
required

RAM allocation in MiB, the unit POST and PUT /apps/{uuid}/addons accept, rounded to 6 decimal places. Null when the add-on has no quota

disk_size
number<float>
required

Disk allocation in GiB, the unit POST and PUT /apps/{uuid}/addons accept, rounded to 6 decimal places. Null when the add-on has no quota

cpu_size
number<float>
required

CPU allocation in cores, the unit POST and PUT /apps/{uuid}/addons accept. On a free plan, creating a postgres, mysql or valkey add-on stores 0.1 whatever cpu_size was sent; PUT stores the value sent. Null when the add-on has no quota

service_id
integer<int32>
required

Numeric ID of the service a storage add-on is mounted from, the value POST /apps/{uuid}/addons accepts as service_id. Null for add-ons not mounted from a service

auto_sleep
boolean
required

The setting PUT takes: on a database of an application, whether it sleeps with the application (true unless set to false); on a service's database, whether it sleeps when idle (false unless set to true)

sleeps_when_idle
boolean
required

Whether the database hibernates when idle: a PostgreSQL database that is not a replica, on free compute or with auto_sleep true, or, on an application, with auto_sleep true and an application that sleeps when idle. A database on an application sleeps only with its application

backup_enabled
boolean
required

Postgres only, null for other types. The effective value the platform applies: false on a free plan whatever was stored, otherwise the stored value, true when never set

scheduled_backup
string
required

Postgres only, null for other types. The effective backup schedule as a 6-field cron expression: the stored schedule, or 0 0 3 * * * when none was set

role
string
required

Postgres only: primary or replica. Null for other types

primary_addon_uuid
string
required

UUID of the primary add-on, for a replica. Null otherwise

replicas
object[]
required

Replicas of a primary Postgres add-on, each with uuid, name, label and state. Null for other add-ons

settings
object
required

Add-on specific settings

var
object
required

Connection environment variables

created_at
string<date-time>
required

Creation timestamp

updated_at
string<date-time>
required

Last update timestamp

connection_details
object
required

Connection details for the addon

Example: