GitLab API

GitlabTool

Actions905

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 CI/CD pipeline trigger in a GitLab project by specifying the project ID and trigger ID.

Use Case Examples

  1. Updating a trigger token for a GitLab project to rotate credentials securely.
  2. Modifying trigger settings to change how a CI/CD pipeline is triggered in a project.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated endpoints.
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 HTTP method to use for the request, default is PUT for this operation.
Path Parameters Parameters for the API path including project ID and trigger ID to identify the specific trigger to update.

Output

JSON

  • id - The ID of the updated trigger
  • token - The token of the updated trigger
  • description - Description of the trigger
  • created_at - Timestamp when the trigger was created
  • updated_at - Timestamp when the trigger was last updated
  • project_id - ID of the project to which the trigger belongs

Dependencies

  • GitLab API credentials 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 authentication credentials are valid and have sufficient permissions to update triggers to avoid authorization errors.
  • Check the request body schema matches the expected format to prevent validation errors from the API.

Links

Discussion