GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation deletes a specific trigger token from a GitLab project using the GitLab API. It is useful for managing project triggers by removing obsolete or compromised trigger tokens to maintain project security and automation integrity. For example, if a trigger token is no longer needed or has been exposed, this operation can be used to delete it from the project.

Use Case Examples

  1. Deleting a trigger token from a project to revoke its access.
  2. Removing an old trigger token to clean up project settings.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
Authentication The authentication method used, defaulting to GitLab API key.
baseUrl The base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET but DELETE is used for this operation.
Path Parameters Parameters for the API path including project ID and trigger token ID.

Output

JSON

  • statusCode - HTTP status code of the delete operation response.
  • body - Response body from the API after deleting the trigger token.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and trigger token ID are correct and exist in GitLab.
  • Authentication errors may occur if the API key is missing or invalid; verify credentials.
  • Permission errors can happen if the API key does not have sufficient rights to delete triggers.

Links

Discussion