GitLab API

GitlabTool

Actions1000

Overview

This node operation performs an HTTP PUT request to update a specific resource group within a GitLab project. It is useful for automating the management of resource groups in GitLab CI/CD pipelines, such as modifying resource group details or configurations programmatically.

Use Case Examples

  1. Updating a resource group key or attributes for a project in GitLab via API automation.
  2. Automating resource group management in CI/CD workflows to ensure resource allocation is up-to-date.

Properties

Name Meaning
Skip Authentication Determines whether to skip API authentication for the request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The HTTP method to use for the request, defaulting to PUT for this operation.
Path Parameters Parameters to specify the project ID or URL-encoded path and the resource group key to identify the resource group to update.

Output

JSON

  • response - The JSON response from the GitLab API after updating the resource group.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and resource group key are correctly specified and URL-encoded if necessary.
  • Verify that the API key used for authentication has sufficient permissions to update resource groups in the project.
  • Check the base URL to ensure it points to the correct GitLab instance.
  • Common error messages include 401 Unauthorized (authentication failure), 404 Not Found (invalid project ID or resource group key), and 400 Bad Request (invalid request body). Resolving these involves correcting credentials, parameters, or request payload.

Links

Discussion