Skip to main content
POST
Rebuild an existing template

Authorizations

X-API-Key
string
header
required

Path Parameters

template_id
string<uuid>
required

The unique identifier of the template.

Response

Existing in-flight build returned (idempotent)

id
string<uuid>
template_id
string<uuid>
status
enum<string>
Available options:
pending,
building,
snapshotting,
ready,
failed,
cancelled
build_spec_hash
string

Stable hash of the build_spec at submission time. Used for idempotent submits.

error_message
string

Populated when status = failed. The message is prefixed with a stable error code the UI / SDK can key on: image_pull_failed, step_failed, boot_failed, snapshot_failed, start_cmd_failed, ready_cmd_failed, or build_failed (fallback).

Example:

"step_failed: step 1/2 failed after 3s: exited with code 100"

started_at
string<date-time>
finalized_at
string<date-time>
created_at
string<date-time>