GitLab API icon

GitLab API

Gitlab

Actions1062

System_hooks → postApiV4Hooks

AI-generated

Summary

Creates a system hook in GitLab by sending a request to the /api/v4/hooks endpoint.

Inputs

  • skipAuthentication — If true, bypasses authentication; otherwise uses the GitLab API credential.
  • baseUrl — Base URL for the GitLab instance. Defaults to https://gitlab.com.
  • method — HTTP method to use. Options: GET, POST, PUT, DELETE, HEAD, PATCH. Defaults to GET but this operation expects POST.
  • path — Request path relative to baseUrl. Defaults to /api/v4/hooks for this operation.

Output shape

object

Returns the response from GitLab, typically the created system hook object as defined by the postApiV4Hooks schema, or an error object if the request fails.

Links

Discussion