GitLab API

GitlabTool

Actions1095

Projects → putApiV4ProjectsIdHooksHookIdCustomHeadersKey

AI-generated

Summary

Update a specific custom header key for a project hook by sending a PUT request to the GitLab API endpoint at /api/v4/projects/{id}/hooks/{hook_id}/custom_headers/{key}.

Inputs

  • id (required) — The ID of the project.
  • hook_id (required) — The ID of the hook associated with the project.
  • key (required) — The key of the custom header to be updated.
  • putApiV4ProjectsIdHooksHookIdCustomHeadersKey (required) — The request body schema containing the new value or details for the custom header key.

Output shape

the API response typically containing the updated custom header information for the specified hook key within the project.

This operation requires authentication via the configured GitLab API credentials unless "Skip Authentication" is set to true. The path parameters (id, hook_id, key) and request body must be supplied explicitly. The response reflects the updated data as returned by the GitLab API; errors and additional metadata depend on the API response.

Links

Discussion