GitLab API

GitlabTool

Actions1000

Overview

This node operation updates a specific trigger token for a project in GitLab using the PUT HTTP method. It is useful for managing project triggers programmatically, such as modifying trigger tokens for CI/CD pipelines or automation workflows within a GitLab project.

Use Case Examples

  1. Updating a trigger token for a project to change its configuration or permissions.
  2. Automating the management of project triggers in GitLab as part of a DevOps pipeline.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the request.
Authentication Specifies the authentication method to use, defaulting to GitLab API 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 PUT.
Path Parameters Parameters for the request path, including the project ID and trigger token ID.

Output

JSON

  • response - The JSON response from the GitLab API after updating the project trigger.

Dependencies

  • GitLab API authentication

Troubleshooting

  • Ensure the project ID and trigger token ID are correctly specified and valid to avoid 404 errors.
  • Verify that the authentication credentials are correctly configured to prevent authorization errors.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is reachable.

Links

Discussion