GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows a user to unfollow another user on GitLab by sending a POST request to the GitLab API endpoint `/api/v4/users/{id}/unfollow`. It is useful in scenarios where automation workflows need to manage user follow relationships on GitLab, such as unfollowing users programmatically based on certain triggers or conditions.

Use Case Examples

  1. Automatically unfollow a user after a project milestone is reached.
  2. Unfollow users who are no longer relevant to a team's collaboration.

Properties

Name Meaning
Skip Authentication Determines whether to skip the authentication step for the API request.
Authentication Specifies the authentication method to use, defaulting to GitLab API authentication.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The HTTP method used for the API request, defaulting to GET but can be set to POST, PUT, DELETE, HEAD, or PATCH.
Path Parameters The path parameters for the API request, specifically the user ID to unfollow.

Output

JSON

  • statusCode - HTTP status code returned by the API request
  • body - Response body from the API request, typically empty or confirmation of unfollow action

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the user ID provided in the path parameters is valid and exists on the GitLab instance.
  • Verify that the authentication credentials are correctly configured and have sufficient permissions to perform the unfollow action.
  • Check the base URL to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.
  • Common error messages include 401 Unauthorized (authentication issues), 404 Not Found (invalid user ID), and 403 Forbidden (insufficient permissions). Resolving these involves correcting credentials, user ID, or permissions respectively.

Links

Discussion