Copies package versions from one repository to another repository in the same domain.
You must specify versions or versionRevisions. You cannot specify both.
post/v1/package/versions/copy#domain&source-repository&destination-repository&format&package
Query parameters
domainstring required
The name of the domain that contains the source and destination repositories.
domain-ownerstring
The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
source-repositorystring required
The name of the repository that contains the package versions to be copied.
destination-repositorystring required
The name of the repository into which package versions are copied.
format'npm' | 'pypi' | 'maven' | 'nuget' | 'generic' required
The format of the package versions to be copied.
namespacestring
<p>The namespace of the package versions to be copied. The package version component that specifies its namespace depends on its type. For example:</p> <ul> <li> <p> The namespace of a Maven package version is its <code>groupId</code>. The namespace is required when copying Maven package versions. </p> </li> <li> <p> The namespace of an npm package version is its <code>scope</code>. </p> </li> <li> <p> Python and NuGet package versions do not contain a corresponding component, package versions of those formats do not have a namespace. </p> </li> <li> <p> The namespace of a generic package is its <code>namespace</code>. </p> </li> </ul>
packagestring required
The name of the package that contains the versions to be copied.
Request body
Response
Success