GitLab API

GitlabTool

Actions905

Overview

This node operation performs an HTTP PUT request to update an NPM package in a specific GitLab project using the GitLab API. It is useful for automating package management tasks within GitLab projects, such as updating package metadata or content programmatically. For example, a developer can use this node to update an NPM package version or details directly from an automation workflow without manual intervention.

Use Case Examples

  1. Updating an NPM package in a GitLab project by specifying the project ID and package name along with the updated package data in the request body.
  2. Automating package version updates in CI/CD pipelines by integrating this node to push changes to GitLab package registry.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to GET but can be set to PUT for this operation.
Path Parameters Parameters to specify the project ID and the NPM package name to identify the resource to update.

Output

JSON

  • response - The JSON response from the GitLab API after updating the NPM package, containing details of the updated package.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and package name are correctly specified and URL-encoded if necessary to avoid 404 errors.
  • Verify that the authentication credentials are valid and have sufficient permissions to update packages in the specified project to prevent authorization errors.
  • Check the request body schema matches the expected format for the GitLab API to avoid validation errors.

Links

Discussion