GitLab API

GitlabTool

Actions1095

Npm_packages → putApiV4PackagesNpmPackage*packageNameDistTagsTag

AI-generated

Summary

Update a specific dist-tag for an NPM package in GitLab's Package Registry, identifying the tag in the path parameters and providing the new tag data in the request body.

Inputs

  • tag (required) — The package dist-tag key to update, specified as a path parameter.
  • Request Body (required) — The updated dist-tag data according to the GitLab API schema for the package's dist-tags.
  • baseUrl — Optional base URL of the GitLab instance; defaults to https://gitlab.com.
  • skipAuthentication — Optional flag to bypass authentication; defaults to false.

Output shape

a JSON object representing the updated NPM package dist-tag data as returned by the GitLab API

The operation performs a PUT HTTP request to /api/v4/packages/npm/-/package/*package_name/dist-tags/{tag} and requires the dist-tag key as a path parameter and the updated data in the body. Authentication via GitLab credentials is required unless skipped. The response contains the updated tag object.

Links

Discussion