GitLab API icon

GitLab API

Gitlab

Actions1062

Npm_packages → putApiV4ProjectsIdPackagesNpmPackageName

AI-generated

Summary

Update an existing NPM package in a specific GitLab project by specifying the project ID (or URL-encoded path) and package name, along with the update details in the request body.

Inputs

  • id (required) — The ID or URL-encoded path of the project in GitLab to which the NPM package belongs.
  • package_name (required) — The name of the NPM package within the specified project to update.
  • putApiV4ProjectsIdPackagesNpmPackageName (required) — The request body object containing update details for the NPM package.
  • skipAuthentication — Optionally skip using authentication for this request; defaults to false.
  • baseUrl — The base URL of the GitLab instance; defaults to https://gitlab.com.

Output shape

a single record representing the updated NPM package details

The operation uses an HTTP PUT method to update the package and returns the response from the GitLab API endpoint /api/v4/projects/{id}/packages/npm/{package_name} including the updated package information.

Links

Discussion