GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation deletes a specific custom header from a project hook in GitLab. It is useful for managing webhook configurations by removing unwanted or outdated custom headers from hooks associated with a project. For example, if a project hook has a custom header that is no longer needed or should be replaced, this operation can be used to delete that header.

Use Case Examples

  1. Deleting a custom header from a project hook to stop sending unnecessary information in webhook requests.
  2. Cleaning up project hook configurations by removing obsolete custom headers.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, default is GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters required in the request path to identify the project, hook, and custom header key to delete.

Output

JSON

  • statusCode - HTTP status code of the response indicating success or failure.
  • body - Response body from the GitLab API after deleting the custom header.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the provided project ID, hook ID, and custom header key are correct and exist in GitLab.
  • Check that the API key has sufficient permissions to delete project hook custom headers.
  • Verify the base URL is correct if using a self-hosted GitLab instance.
  • Common error messages include 404 Not Found if the project, hook, or header key does not exist, and 401 Unauthorized if authentication fails.

Discussion