GitLab API

GitlabTool

Actions905

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 active in a GitLab group.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key 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 POST for this operation.
Path Parameters The path parameter 'id' specifies the ID of the user to unfollow.

Output

JSON

  • id - The ID of the user who was unfollowed.
  • status - The status of the unfollow operation, typically indicating success or failure.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the user ID provided in the path parameters is valid and exists on GitLab.
  • Verify that the API key used for authentication has sufficient permissions to unfollow users.
  • Check the base URL to ensure it points to the correct GitLab instance.
  • Common error messages include 401 Unauthorized (invalid or missing API key), 404 Not Found (user ID does not exist), and 403 Forbidden (insufficient permissions). Resolving these involves correcting credentials, user ID, or permissions.

Links

Discussion