RegistryPreview

PostPublishPackageVersion

Initiates the first step of a two-phase package version publish workflow. This creates a publish transaction and returns an operationID along with pre-signed upload URLs for the package artifacts (schema, index, and installationConfiguration). The caller must upload all required artifacts to the provided URLs and then call the PostPublishPackageVersionComplete endpoint with the operationID to finalize the publish. The request body must include the semantic version to publish. Returns 202 Accepted with the operation details, 404 if the source does not exist, or 409 if the specified version already exists.

post/api/preview/registry/packages/{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/packages/{source}/{publisher}/{name}/versions
  • Auth: none declared

Path parameters

sourcestring required

The package source: 'pulumi', 'opentofu', or 'private'

publisherstring required

Organization that owns the package

namestring required

The package name

Request body

publishedAtstring date-time

Optional timestamp for when the package version was originally published. If not provided, defaults to current server time. Useful for backfilling historical versions with their original publish dates.

versionstring required

The semantic version of the package 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.