GitLab API icon

GitLab API

Gitlab

Actions1062

Npm_packages → putApiV4GroupsIdPackagesNpmPackage*packageNameDistTagsTag

AI-generated

Summary

Update or create a dist-tag for a specific npm package within a GitLab group by specifying the group ID, package name, tag, and request body details.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab group owning the npm package.
  • tag (required) — The name of the package dist-tag to set or update.
  • putApiV4GroupsIdPackagesNpmPackage*packageNameDistTagsTag (required) — The request body containing the dist-tag details to be updated or created.
  • baseUrl — The base URL of the GitLab instance; defaults to https://gitlab.com.
  • skipAuthentication — Boolean flag to skip authentication if set to true.

Output shape

a single response object representing the updated or created dist-tag for the npm package.

Requires the group ID, tag name, and request body to be provided. Authenticates via the configured GitLab API credential unless skipAuthentication is true. Uses HTTP PUT method to update or create the dist-tag at path /api/v4/groups/{id}/-/packages/npm/-/package/*package_name/dist-tags/{tag}.

Links

Discussion