Skip to main content
PUT
ClickStack: Update App
Beta This endpoint is in beta. API contract is stable, and no breaking changes are expected in the future.

ClickStack: Preview. Replaces an app’s name, sharing, code, and purpose. isShared is required; an omitted purpose resets to empty. The manifest can’t be set: its queries are read from the code. When the code or purpose changes, a new version is saved; the old one stays in the app’s version history. The last write wins: a build running in the app builder can replace the version afterwards.

Permission

The API key must have the control-plane:service:manage-clickstack-api permission.

Authorizations

Authorization
string
header
required

Use key ID and key secret obtained in ClickHouse Cloud console: https://clickhouse.com/docs/cloud/manage/openapi

Path Parameters

organizationId
string<uuid>
required

ID of the organization that owns the service.

serviceId
string<uuid>
required

ID of the ClickStack service.

clickStackAppId
string
required

id parameter

Body

application/json
name
string
required

App name. Must not be blank or start or end with whitespace.

Example:

"Checkout health"

isShared
boolean
required

Whether the whole team can see and edit the app. When false, only the app's creator (the API key's user) can. Only the creator can change it.

code
string
required

The app's TSX source. It must default-export a React component and import only modules the app runtime provides.

Example:

"export default function App() { return <div>Hello</div>; }"

purpose
string

What the app is for, who it helps, and how to use it. Shown on the app's About page and used as context when the app is edited in the app builder.

Example:

"Shows checkout errors for on-call engineers."

Response

Successful response

status
number

HTTP status code.

Example:

200

requestId
string<uuid>

Unique id assigned to every request. UUIDv4

result
object