GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to create triggers for a specific project. It is useful for automating workflows that require triggering actions within GitLab projects, such as CI/CD pipelines or webhook setups. For example, a user can create a trigger to start a pipeline when certain events occur in a project.

Use Case Examples

  1. Creating a trigger for a GitLab project to automate CI/CD pipeline execution.
  2. Setting up a project trigger to notify external systems when code is pushed.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to POST.
Path Parameters Parameters to specify the project ID or URL-encoded path for which the trigger is created.

Output

JSON

  • id - The unique identifier of the created trigger.
  • token - The token associated with the trigger for authentication.
  • description - Description of the trigger.
  • created_at - Timestamp when the trigger was created.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID provided in path parameters is correct and accessible with the authenticated user.
  • Verify that the GitLab API key credential is valid and has sufficient permissions to create triggers.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.
  • Common error messages include authentication failures (401 Unauthorized) and resource not found (404) if the project ID is invalid.

Links

Discussion