GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → postApiV4ProjectsIdHooksHookIdTestTrigger

AI-generated

Summary

Trigger a test event for a specific project hook in GitLab to verify it is set up correctly and receiving events.

Inputs

  • id (required) — The ID of the GitLab project containing the hook.
  • hook_id (required) — The ID of the hook to be tested.
  • trigger (required) — The type of trigger event to simulate for testing the hook. Allowed values include: confidential_issues_events, confidential_note_events, deployment_events, emoji_events, feature_flag_events, issues_events, job_events, merge_requests_events, note_events, pipeline_events, push_events, releases_events, resource_access_token_events, tag_push_events, wiki_page_events, vulnerability_events.
  • skipAuthentication — Set to true to bypass authentication for this operation (default false).
  • baseUrl — Base URL of the GitLab instance (default is https://gitlab.com).
  • method — HTTP method to use for the request (default is GET, but for this operation POST is used).

Output shape

no body — success/failure only

This operation triggers a test event for the specified hook and does not return a data payload. It is used to confirm the hook is properly receiving event notifications. Errors or failure states will be indicated by standard error responses.

Links

Discussion