GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → putApiV4ProjectsIdHooksHookIdCustomHeadersKey

AI-generated

Summary

Update or create a custom header for a specific project hook in GitLab by specifying the project ID, hook ID, and header key, along with the new header data in the request body.

Inputs

  • id (required) — The ID of the GitLab project containing the hook.
  • hook_id (required) — The ID of the hook within the project.
  • key (required) — The key name of the custom header to update or create.
  • putApiV4ProjectsIdHooksHookIdCustomHeadersKey (required) — The request body containing the custom header data to set.
  • skipAuthentication — Option to skip authentication; defaults to false.
  • baseUrl — Base URL for the GitLab API; defaults to https://gitlab.com.

Output shape

a JSON object containing the updated custom header details as returned by the GitLab API

Requires authentication unless 'Skip Authentication' is enabled. All path parameters (id, hook_id, key) and the request body parameter are required for successful execution.

Links

Discussion