GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation deletes an invitation to a GitLab project by specifying the project ID and the email address of the invitation to be removed. It is useful for managing project access by revoking invitations that were previously sent to users. For example, if a project admin wants to cancel an invitation sent to a user who should no longer be granted access, this operation can be used to remove 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 Whether to skip authentication for the request.
Authentication The authentication method used for the request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method used for the request, defaulting to GET but here it will be DELETE for this operation.
Path Parameters The path parameters required for the request, including the project ID and the email address of the invitation to delete.

Output

JSON

  • statusCode - The HTTP status code returned by the API indicating the result of the delete operation.
  • message - A message from the API response, typically confirming the deletion or providing error details.

Dependencies

  • Requires GitLab API key authentication unless skipping authentication is enabled.

Troubleshooting

  • Ensure the project ID and email address are correctly specified; incorrect values will cause the API to return errors such as 404 Not Found.
  • Authentication errors may occur if the API key is missing or invalid; verify credentials are correctly configured.
  • Network or base URL misconfiguration can lead to connection failures; confirm the base URL is correct for the GitLab instance used.

Links

Discussion