GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes an invitation to a GitLab project based on the project ID and the email address of the invitation. It is useful for managing project invitations by removing specific users who were invited via email. For example, if a project admin wants to revoke an invitation sent to a particular email, this operation can be used to delete that invitation.

Use Case Examples

  1. Deleting an invitation for a user who no longer needs access to a project.
  2. Revoking an invitation sent by mistake to an incorrect email address.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request.
Authentication The authentication method used for the request, defaulting to GitLab API authentication.
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 can be set to DELETE for this operation.
Path Parameters Parameters required in the request path, specifically the project 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 body of the response from the API, which may contain confirmation or error details.

Dependencies

  • GitLab API authentication token

Troubleshooting

  • Ensure the project ID and email address are correctly provided and valid; otherwise, the API may return errors such as 404 Not Found or 400 Bad Request.
  • Authentication errors may occur if the API token is missing or invalid; verify the credentials are correctly configured.
  • If the invitation does not exist, the API may return a 404 error indicating the resource was not found.

Links

Discussion