Update App

Rename an app, upgrade its package or change its renewal and AI connection.

Rename an app, switch its renewal or AI connection, or upgrade its package. Send at least one of name, package, auto_renew and ai_mode.

PATCH /v1/launchpad/apps/:app_id

Path parameters

app_idstringrequired

The app's ID.

Body

namestringoptional

A new name: 1 to 40 characters on one line.

packagestringoptional

A larger package. The app must be running or stopped; a running app restarts on the new package. The difference in price for the days left in the paid month is charged now; renews_at doesn't move.

Allowed values:sml
expected_chargestringoptional

With package: the upgrade price you expect, such as "3.87". If the price is different, nothing changes and you get 409 with the current price.

auto_renewbooleanoptional

Renew each month from your balance.

ai_modestringoptional

Switch the AI connection. To custom, the app's managed API key is retired; to aivene, a new one is made. Applied at the next start.

Allowed values:aivenecustom

Response

(object)Appoptional

Errors

StatusReason
400Nothing to change, an invalid field, a smaller package, or aivene for an image without Aivene support.
402Not enough balance for the upgrade, or a spend limit was reached. Nothing was charged.
404No app with this ID exists in the key's workspace.
409The app's status doesn't allow an upgrade, or the upgrade price differs from expected_charge.
503Launchpad is temporarily unavailable. Nothing was charged.