Skip to main content
POST
Commit
commit regenerates types, commits and pushes, then builds and snapshots in the background — the returned changedApps report buildStatus: "building". Poll GET /apps/{appId} until the build is success, then publish.
If the workspace has newer commits than your session, commit returns CONFLICT. Pull and rebase inside the session (POST /bash with git pull --rebase origin main), resolve, and commit again.

Authorizations

Authorization
string
header
required

Enter your Zite API key. Format: Bearer <api_key>

Path Parameters

sessionId
string
required

The build session ID from Open a session.

Body

application/json
message
string
required

Commit message.

Example:

"Add ticket list endpoint and UI"

Response

The commit and the apps it changed

commitSha
string | null

Null when there was nothing to commit.

changedApps
object[]

Apps the commit touched. Each starts a background build — poll GET /apps/{appId} until buildStatus is success.

workspaceId
string