GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation deletes an invitation to a GitLab group based on the group ID and the email address of the invitation. It is useful for managing group memberships by removing pending invitations for specific users. For example, if an admin wants to revoke an invitation sent to a user who should no longer join the group, this operation can be used.

Use Case Examples

  1. Deleting an invitation for a user with a specific email from a GitLab group identified by its ID.
  2. Automating cleanup of pending invitations in GitLab groups.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
Authentication The authentication method used for the request, defaulting to GitLab API key.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to GET but set to DELETE for this operation.
Path Parameters The path parameters required for the request, specifically the group ID and the email address of the invitation to delete.

Output

JSON

  • statusCode - The HTTP status code returned by the API after attempting to delete the invitation.
  • responseBody - The response body from the API, typically empty or containing confirmation of deletion.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the group ID and email address are correctly specified; incorrect values will cause the API to fail to find the invitation.
  • Authentication errors may occur if the API key is missing or invalid; verify the API key credentials.
  • The API may return errors if the invitation does not exist or has already been deleted.

Links

Discussion