Skip to main content
PUT
Update Application Demo Configuration

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null
x-ankra-organisation-id
string | null

Path Parameters

application_id
string
required

Body

application/json

The application's saved demo defaults, served and accepted by GET/PUT demo-config. On PUT, env and database are replaced wholesale; stack_profile, base_stack, migrate_command, and database_extensions are written only when their key is present in the body (absent preserves the stored value, explicit null/empty clears it).

database
boolean
required
env
object[]
required
base_stack
object | null

The shared demo base stack demos of this application depend on; null keeps demos free of shared infrastructure.

database_extensions
string[] | null

Postgres extensions the demo database creates at initdb (plain lowercase identifiers, e.g. vector). Requires database=true.

migrate_command
string | null

The command that provisions a fresh demo database's schema; runs through sh -c in the application image after the database gate, with the demo environment. Requires database=true or a base stack.

stack_profile
object | null

The full-stack demo designation; null keeps demos single-service.

Response

The saved configuration after the write

The application's saved demo defaults, served and accepted by GET/PUT demo-config. On PUT, env and database are replaced wholesale; stack_profile, base_stack, migrate_command, and database_extensions are written only when their key is present in the body (absent preserves the stored value, explicit null/empty clears it).

database
boolean
required
env
object[]
required
base_stack
object | null

The shared demo base stack demos of this application depend on; null keeps demos free of shared infrastructure.

database_extensions
string[] | null

Postgres extensions the demo database creates at initdb (plain lowercase identifiers, e.g. vector). Requires database=true.

migrate_command
string | null

The command that provisions a fresh demo database's schema; runs through sh -c in the application image after the database gate, with the demo environment. Requires database=true or a base stack.

stack_profile
object | null

The full-stack demo designation; null keeps demos single-service.