GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to update an NPM package within a specific project using the PUT HTTP method. It is useful for automating package management tasks in GitLab projects, such as updating package metadata or content programmatically. For example, it can be used in CI/CD pipelines to update NPM packages after a successful build.

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 details in the request body.
  2. Automating package version updates in GitLab projects as part of a deployment workflow.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used for the request, defaulting to GitLab API key authentication.
baseUrl Base URL for the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but for this operation it is PUT.
Path Parameters Parameters to specify the project ID and the NPM package name to update.

Output

JSON

  • response - The JSON response from the GitLab API after updating the NPM package.

Dependencies

  • Requires GitLab API key authentication credentials.

Troubleshooting

  • Ensure the project ID and package name are correctly specified and URL-encoded if necessary.
  • Verify that the GitLab API key has sufficient permissions to update packages in the specified project.
  • Check the request body schema to ensure it matches the expected format for updating an NPM package in GitLab.
  • Common errors include authentication failures, permission denied errors, and invalid parameter errors. Verify credentials and input parameters to resolve these.

Links

Discussion