GitLab API icon

GitLab API

Gitlab

Actions1062

Npm_packages → putApiV4PackagesNpmPackage*packageNameDistTagsTag

AI-generated

Summary

Update a dist-tag of an NPM package in GitLab's package registry by specifying the package name and dist-tag to modify.

Inputs

  • tag (required) — The name of the package dist-tag to update (path parameter).
  • request body (required) — The payload following the schema for updating the dist-tag information of the specified NPM package.
  • baseUrl — Optional base URL for the GitLab instance; defaults to https://gitlab.com.
  • skipAuthentication — Boolean flag to skip authentication; defaults to false.

Output shape

A single updated dist-tag object for the specified NPM package returned from GitLab's API.

The operation sends a PUT request to the path /api/v4/packages/npm/-/package/*package_name/dist-tags/{tag}, replacing *package_name and {tag} respectively. Authentication via GitLab API credential is required unless skipAuthentication is set to true.

Links

Discussion