Creates a new package version containing one or more assets (or files).
The unfinished flag can be used to keep the package version in the Unfinished state until all of its assets have been uploaded (see Package version status in the CodeArtifact user guide). To set the package version’s status to Published, omit the unfinished flag when uploading the final asset, or set the status using UpdatePackageVersionStatus. Once a package version’s status is set to Published, it cannot change back to Unfinished.
Only generic packages can be published using this API. For more information, see Using generic packages in the CodeArtifact User Guide.
Query parameters
The name of the domain that contains the repository that contains the package version to publish.
The 12-digit account number of the AWS account that owns the domain. It does not include dashes or spaces.
The name of the repository that the package version will be published to.
A format that specifies the type of the package version with the requested asset file.
The namespace of the package version to publish.
The name of the package version to publish.
The package version to publish (for example, <code>3.5.2</code>).
The name of the asset to publish. Asset names can include Unicode letters and numbers, and the following special characters: <code>~ ! @ ^ & ( ) - _ + [ ] { } ; , .</code>
Headers
Request body
Response
Success