GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows a user to follow another user on GitLab by sending a POST request to the GitLab API endpoint `/api/v4/users/{id}/follow`. It is useful in scenarios where automation workflows need to programmatically follow users on GitLab, such as in social or collaborative project management automation.

Use Case Examples

  1. Automatically follow a user after a certain event in a CI/CD pipeline.
  2. Follow a user based on a trigger from another system to keep track of their activities.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated API calls.
Authentication Type of authentication used for the API call, hidden unless Skip Authentication is false.
baseUrl Base URL of the GitLab instance to which the API request is sent.
Method HTTP method used for the API request, default is GET but POST is used for this operation.
Path Parameters Parameters included in the API request path, specifically the user ID to follow.

Output

JSON

  • id - The ID of the user being followed.
  • username - The username of the user being followed.
  • name - The full name of the user being followed.
  • state - The state of the user account (e.g., active).
  • avatar_url - URL to the user's avatar image.
  • web_url - URL to the user's GitLab profile page.

Dependencies

  • GitLab API authentication token

Troubleshooting

  • Ensure the user ID provided in the path parameters is valid and exists in GitLab.
  • Verify that the authentication token has sufficient permissions to follow users.
  • Check the base URL to ensure it points to the correct GitLab instance.
  • Common error messages include 401 Unauthorized (authentication issues), 404 Not Found (invalid user ID), and 403 Forbidden (insufficient permissions).

Links

Discussion