GitLab API icon

GitLab API

Gitlab

Actions1062

Project_hooks → postApiV4ProjectsIdHooks

AI-generated

Summary

Creates a new project hook (webhook) for a GitLab project via POST /api/v4/projects/{id}/hooks.

Inputs

  • id (required) — The ID or URL-encoded path of the project.
  • postApiV4ProjectsIdHooks (required) — Hook configuration as defined by the GitLab API (URL, events, etc.).
  • skipAuthentication — If true, disables use of the gitlabApi credential and calls the endpoint without authentication.
  • baseUrl — Alternative base URL for the GitLab instance (default: https://gitlab.com).

Output shape

object

Returns the created hook object from GitLab, containing its ID, URL, and configuration.

Links

Discussion