GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes a specific badge from a group in GitLab using the GitLab API. It is useful for managing group badges by removing outdated or unwanted badges programmatically. For example, an admin can automate badge cleanup for groups in their GitLab instance.

Use Case Examples

  1. Deleting a badge from a GitLab group by specifying the group ID and badge ID.
  2. Automating badge management in GitLab groups to maintain up-to-date badge collections.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication Type of authentication used, default is GitLab API key.
baseUrl 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 required in the URL path to identify the group and badge to delete.

Output

JSON

  • statusCode - HTTP status code of the delete operation response.
  • body - Response body from the GitLab API after attempting to delete the badge.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the group ID and badge ID are correct and the authenticated user has permission to delete badges in the group.
  • If authentication is skipped, the request may fail due to lack of authorization.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure it is correct.
  • Common error messages include 404 Not Found if the badge or group does not exist, and 403 Forbidden if the user lacks permission.

Links

Discussion