GitLab API

GitlabTool

Actions1095

Projects → getApiV4ProjectsIdTriggersTriggerId

AI-generated

Summary

Retrieve a specific trigger for a GitLab project by project ID or URL-encoded path and trigger token ID.

Inputs

  • Skip Authentication — Optionally skip authentication for this request (default is false).
  • baseUrl — Base URL for the GitLab instance (default is https://gitlab.com).
  • Method (required) — HTTP method to use (GET, POST, PUT, DELETE, HEAD, PATCH). Defaults to GET.
  • Id (required) — The ID or URL-encoded path of the GitLab project.
  • Trigger_id (required) — The ID of the project trigger token to retrieve.

Output shape

a single JSON object representing the specified GitLab project trigger.

The operation uses the HTTP method selected (default GET) on the path /api/v4/projects/{id}/triggers/{trigger_id}. Authentication is mandatory unless 'Skip Authentication' is set. The response schema corresponds to the GitLab API's project trigger resource.

Examples

Example 1: Retrieve trigger with ID 10 for project with ID 18 on the default GitLab instance.

Set Id to '18', Trigger_id to '10', Method to 'GET', and leave baseUrl as default.

Links

Discussion