GitLab API

GitlabTool

Actions905

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 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, specifically 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.
  • body - The response body from the API, typically empty for a successful delete operation.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID and email address are correct and exist in GitLab.
  • Authentication errors may occur if the API token is missing or invalid; verify credentials.
  • A 404 error indicates the project or invitation email was not found; check the parameters.
  • Permission errors may occur if the authenticated user does not have rights to delete invitations on the project.

Links

Discussion