GitLab API

GitlabTool

Actions905

Overview

This node interacts with the GitLab API to update custom headers for a specific hook using the PUT method. It is useful for automating the management of webhook custom headers in GitLab projects, such as modifying header values dynamically based on workflow needs.

Use Case Examples

  1. Updating a custom header for a webhook to change authentication tokens or other metadata.
  2. Automating the maintenance of webhook configurations across multiple GitLab projects.

Properties

Name Meaning
Skip Authentication Determines whether to skip API authentication for the request.
Authentication Specifies the authentication method, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is PUT for this operation.
Path Parameters Parameters for the API path including hook ID and custom header key.

Output

JSON

  • response - The response from the GitLab API after updating the custom header.

Dependencies

  • GitLab API credentials for authentication

Troubleshooting

  • Ensure the hook_id and key path parameters are correctly set and valid to avoid 404 errors.
  • Verify that the API credentials have sufficient permissions to update webhook custom headers.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure the correct endpoint is targeted.

Links

Discussion