GitLab API icon

GitLab API

Gitlab

Actions917

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 analytics or monitoring workflows.

Use Case Examples

  1. Increment unique user count in GitLab usage data after a user action.
  2. Track unique users for usage reporting in GitLab projects.

Properties

Name Meaning
Skip Authentication Determines whether to skip API 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 HTTP method used for the API request, default is POST for this operation.
Parameter Schema Defines the schema for the request body parameters required by the operation.
Request Body Schema Schema for the request body, typically defining the data structure sent in the POST request.
Request Path The API endpoint path for incrementing unique users in usage data.

Output

JSON

  • response - The JSON response from the GitLab API after incrementing unique users, typically containing status or updated usage data information.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the GitLab API key credential is correctly configured and has sufficient permissions to access usage data endpoints.
  • Verify the baseUrl is correct and accessible, especially if using a self-hosted GitLab instance.
  • Check that the request body matches the expected schema to avoid validation errors from the API.
  • Common error messages may include authentication failures (401 Unauthorized) or permission errors (403 Forbidden), which require checking API key validity and user permissions.

Links

Discussion