GitLab API

GitlabTool

Actions905

Overview

This node operation updates a specific variable in a GitLab project using the GitLab API. It is useful for automating the management of project variables, such as environment variables or configuration settings, directly from an n8n workflow. For example, it can be used to update deployment keys or secret tokens in a project without manual intervention.

Use Case Examples

  1. Updating a CI/CD variable in a GitLab project to change deployment credentials.
  2. Modifying a project variable to toggle feature flags or environment settings during automated workflows.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
Authentication The authentication method used for the API request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the request, defaulting to PUT for this operation.
Path Parameters Parameters specifying the project ID and the key of the variable to update.

Output

JSON

  • response - The JSON response from the GitLab API after updating the project variable.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and variable key are correctly specified; incorrect values will cause the API request to fail.
  • Authentication errors may occur if the API key is missing or invalid; verify credentials are correctly configured.
  • Network or base URL issues can cause request failures; confirm the baseUrl is correct and accessible.

Links

Discussion