RegistryPreview

PostPublishTemplateVersion

Initiates the first step of a two-phase template version publish workflow. This creates a publish transaction and returns an operationID along with a pre-signed upload URL for the template archive. The source must be 'private'. The caller must upload the template archive (a gzip-compressed tar file containing a root-level Pulumi.yaml with a template section, and optionally a README.md) to the provided URL, then call PostPublishTemplateVersionComplete with the operationID to finalize the publish. The request body must include the semantic version to publish. Returns 202 Accepted with the operation details, or 404 if the source does not exist.

post/api/preview/registry/templates/{source}/{publisher}/{name}/versions

Request

  • Base URL: https://api.pulumi.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.pulumi.com/api/preview/registry/templates/{source}/{publisher}/{name}/versions
  • Auth: none declared

Path parameters

sourcestring required

The template source: 'private', 'github', or 'gitlab'

publisherstring required

Organization that owns the template

namestring required

The template name

Request body

versionstring required

The semantic version of the template to publish.

Response

Accepted

operationIDstring required

The unique identifier for the publish operation.

Changes

No recorded changes to this operation across all 1 revision of this API.