GitLab API

GitlabTool

Actions1000

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 you want to invalidate a token that is no longer needed or compromised.

Use Case Examples

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

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
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 Parameters to be included in the request path, specifically the ID of the personal access token to delete.

Output

JSON

  • status - The HTTP status code of the delete operation response.
  • message - A message indicating the result of the delete operation, such as success or error details.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the personal access token ID is valid and exists; otherwise, the delete operation will fail.
  • Check that the API credentials have sufficient permissions to delete personal access tokens.
  • Verify the base URL is correct for the GitLab instance being accessed.
  • Common error messages include 404 Not Found if the token ID does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion