GitLab API icon

GitLab API

Gitlab

Actions1062

Hooks → postApiV4HooksHookId

AI-generated

Summary

Updates a specified GitLab webhook hook via the GitLab API using a specific HTTP method.

Inputs

  • hook_id (required) — The ID of the hook to update.
  • method — The HTTP method to use (GET, POST, PUT, DELETE, HEAD, PATCH). Defaults to GET.
  • skipAuthentication — If true, skips the configured GitLab API authentication.
  • baseUrl — The base URL for the GitLab instance. Defaults to 'https://gitlab.com'.
  • requestBodySchema — Hidden schema defining the request body payload for the update.

Output shape

The API response from GitLab, typically the updated hook object.

Uses the 'gitlabApi' authentication method by default.

Examples

Example 1: Update a webhook hook with new events.

Operation: POST, Hook ID: 42, Method: POST

Links

Discussion