GitLab API

GitlabTool

Actions905

Overview

This node operation deletes a personal access token in GitLab by its ID. It is useful for managing and revoking access tokens programmatically, for example, when automating user access control or cleaning up unused tokens.

Use Case Examples

  1. Deleting a personal access token by specifying its ID to revoke access.
  2. Automating token management in GitLab for security compliance.

Properties

Name Meaning
Skip Authentication If true, the node skips authentication for the 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 HTTP method to use for the request, default is GET but DELETE is used for this operation.
Path Parameters Collection of path parameters, specifically the 'id' of the personal access token to delete.

Output

JSON

  • success - Indicates whether the deletion was successful.
  • statusCode - HTTP status code returned from the API.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the 'id' path parameter is provided and is a valid integer representing the personal access token ID.
  • Authentication errors may occur if the API key credential is missing or invalid; verify credentials are correctly configured.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure the URL is correct.
  • API rate limits or permission issues may cause the deletion to fail; verify the API token has sufficient permissions.

Links

Discussion