Publish template
Publish a template document to your registry.
orgo.ai/v1 document, sent as YAML (Content-Type: application/yaml) or JSON. The body is parsed as YAML only when the content type contains yaml; anything else is parsed as JSON.
A successful publish returns 201.
namespace/name@version is published, re-publishing the same ref with different content returns 409. Bump template.version to ship a change, or pass ?force=true to overwrite the version in place while iterating.Query parameters
true to build the golden snapshot immediately after publishing. Like calling Build template yourself, except that nothing is queued when this exact content is already built. Omitted, the version is published unbuilt and cannot launch until you build it. Only the exact string true enables it.true to overwrite an existing version in place (delete + republish). Useful for fast iteration on a single version number. Omitted, re-publishing an existing ref with different content returns 409. Only the exact string true enables it.Request body
The raw template document. Validate it first with Validate template to catch errors without writing anything.Response
namespace/name@version.?auto_build=true. building while the build is queued or running, ready when a golden snapshot for this exact content already exists. Absent when no build could be started. Read build.error for the reason, then call Build template.?auto_build=true. What happened to the requested build. The publish itself has succeeded either way.Example
Response
Errors
code rather than on the message text: UPGRADE_REQUIRED with upgradeTier is the upsell signal, and the rate-limit codes tell you what to back off from.Authorizations
API key authentication. Get your key at orgo.ai/workspaces
Query Parameters
true queues a golden-snapshot build right after publishing. Omitted, the version is published unbuilt and cannot launch until you build it. Only the exact string true enables it.
true overwrites an existing version in place (delete + republish). Omitted, re-publishing an existing ref with different content returns 409. Only the exact string true enables it.
Body
The orgo.ai/v1 template document as YAML.
Response
Published
"default/claude-code@1.0.0"
Present only with ?auto_build=true. building while the build is queued or running, ready when a golden snapshot for this exact content already exists. Absent when no build could be started; read build.error.
building, ready Present only with ?auto_build=true. What happened to the requested build. The publish itself has succeeded either way.