GitLab API

GitlabTool

Actions1095

Project_hooks → postApiV4ProjectsIdHooks

AI-generated

Summary

Create a GitLab project hook using the POST /api/v4/projects/{id}/hooks endpoint. Set the project ID or URL-encoded project path; the request body is required by the endpoint schema but its fields are not exposed in the provided properties.

Inputs

  • Skip Authentication — Defaults to false. When enabled, skips the GitLab API credential authentication.
  • GitLab API credential — Used for authentication unless Skip Authentication is enabled. The source declares the credential as required, though the UI property hides its selector when authentication is skipped.
  • Base URL — Defaults to https://gitlab.com; the source notes that the actual base URL is defined in the GitLab API credential.
  • Method — The UI offers GET, POST, PUT, DELETE, HEAD, and PATCH and defaults to GET. The endpoint is a hook-creation POST operation, so select POST to create the hook.
  • Path Parameters → Id (required) — The project ID or URL-encoded project path.

Output shape

A single API response item containing the result of the request.

The supplied implementation delegates request execution to the OpenApiToolNode base class, so the precise response fields are not shown. Although this operation is a POST endpoint, the exposed Method field defaults to GET; the request body is required by the parameter schema, but no body fields are exposed in the provided properties.

Links

Discussion