GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node interacts with the GitLab API to increment the count of unique users in usage data via a POST request to the endpoint `/api/v4/usage_data/increment_unique_users`. It is useful for tracking unique user metrics in GitLab usage data, typically in scenarios where monitoring user activity or usage statistics is required.

Use Case Examples

  1. Increment unique user count in GitLab usage data for analytics purposes.
  2. Automate usage data updates by sending POST requests to GitLab's usage data API endpoint.

Properties

Name Meaning
Skip Authentication Option to skip API authentication for the request.
Authentication Type of authentication used for the API request, defaulting to GitLab API key authentication.
baseUrl Base URL for the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET but POST is used for this operation.

Output

JSON

  • response - The JSON response from the GitLab API after incrementing unique users.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the GitLab API key credential is correctly configured and has the necessary permissions to access usage data endpoints.
  • Verify the baseUrl is correct and accessible, especially if using a self-hosted GitLab instance.
  • Common errors include authentication failures (401 Unauthorized) and invalid request body format (400 Bad Request). Check the request body schema matches the expected format for incrementing unique users.

Links

Discussion