GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → deleteApiV4ProjectsIdHooksHookIdCustomHeadersKey

AI-generated

Summary

Delete a custom header from a specific webhook of a project in GitLab by specifying the project ID, webhook ID, and the custom header key.

Inputs

  • Id (required) — The unique ID of the GitLab project from which the webhook's custom header will be deleted.
  • Hook_id (required) — The ID of the webhook (hook) associated with the project.
  • Key (required) — The key of the custom header to be deleted from the specified webhook.
  • Skip Authentication — Optionally skip authentication; by default, the GitLab API credential is used.

Output shape

no body — success/failure only

The operation sends a DELETE HTTP request to the API endpoint for removing the custom header from the webhook. It returns no data on success, only the HTTP response status indicating success or failure.

Examples

Example 1: Delete a custom header named 'X-Custom-Header' from webhook with ID 123 on project with ID 456.

Set 'Id' to 456, 'Hook_id' to 123, and 'Key' to 'X-Custom-Header'. Authenticate with the GitLab API credentials unless 'Skip Authentication' is enabled.

Links

Discussion