v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1438166195.6 KB

Returns the direct dependencies for a package version. The dependencies are returned as <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_PackageDependency.html">PackageDependency</a> objects. CodeArtifact extracts the dependencies for a package version from the metadata file for the package format (for example, the <code>package.json</code> file for npm packages and the <code>pom.xml</code> file for Maven). Any package version dependencies that are not listed in the configuration file are not returned.

post/v1/package/version/dependencies#domain&repository&format&package&version

Query parameters

domainstring required

The name of the domain that contains the repository that contains the requested package version dependencies.

domain-ownerstring

The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.

repositorystring required

The name of the repository that contains the requested package version.

format'npm' | 'pypi' | 'maven' | 'nuget' | 'generic' required

The format of the package with the requested dependencies.

namespacestring
<p>The namespace of the package version with the requested dependencies. 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>. </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 versions' package.

versionstring required

A string that contains the package version (for example, <code>3.5.2</code>).

next-tokenstring

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

Response

Success

format'npm' | 'pypi' | 'maven' | 'nuget' | 'generic'

A format that specifies the type of the package that contains the returned dependencies.

namespacestring
<p>The namespace of the package version that contains the returned dependencies. 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>. </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> </ul>
packagestring

The name of the package that contains the returned package versions dependencies.

versionstring

The version of the package that is specified in the request.

versionRevisionstring

The current revision associated with the package version.

nextTokenstring

The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.