GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation updates a specific trigger for a project in GitLab using the GitLab API. It is useful for automating the management of project triggers, such as modifying trigger tokens or settings programmatically. For example, a user can update a trigger's token or configuration for a project identified by its ID, enabling integration with CI/CD pipelines or other automation workflows.

Use Case Examples

  1. Update a trigger token for a GitLab project to rotate credentials securely.
  2. Modify trigger settings for a project to adjust automated deployment triggers.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated endpoints.
Authentication Type of authentication used, defaulting to GitLab API key authentication.
baseUrl Base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is PUT for this operation.
Path Parameters Parameters required in the URL path to identify the project and trigger to update.

Output

JSON

  • response - The JSON response from the GitLab API after updating the project trigger, containing details of the updated trigger.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and trigger ID are correct and exist in the GitLab instance to avoid 404 errors.
  • Verify that the API key has sufficient permissions to update project triggers to prevent authorization errors.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure the request targets the correct server.

Links

Discussion