GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation deletes an access request for a specific user on a GitLab project. It is useful for managing project access by revoking pending access requests from users who should no longer have access or whose requests need to be withdrawn. For example, a project administrator can use this operation to remove a user's access request to a project by specifying the project ID and the user ID of the requester.

Use Case Examples

  1. Deleting a user's access request to a project to prevent them from gaining access.
  2. Revoking access requests that were submitted in error or are no longer needed.

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 request path to identify the project and user.

Output

JSON

  • statusCode - HTTP status code of the delete operation response.
  • responseBody - Response body returned from the GitLab API after deleting the access request.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and user ID are correctly specified and exist in GitLab.
  • Verify that the API key used has sufficient permissions to delete access requests on the project.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • Common error messages include 404 Not Found if the project or user does not exist, and 403 Forbidden if the API key lacks permissions.

Links

Discussion