GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node interacts with the GitLab API to increment a usage data counter via a POST request to the endpoint `/api/v4/usage_data/increment_counter`. It is useful for tracking and updating usage metrics programmatically within GitLab, such as incrementing counters for API usage or other monitored activities.

Use Case Examples

  1. Automatically increment usage counters in GitLab when certain events occur in your workflow.
  2. Track API usage or feature usage by incrementing counters through this node.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for testing or when authentication is handled externally.
Authentication Select the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the request is sent, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is POST for this operation.
Parameter Schema Schema defining the parameters expected in the request body for incrementing the usage data counter.
Request Body Schema Schema for the request body, hidden and used internally for validation.
Request Path The API endpoint path for incrementing the usage data counter, fixed to `/api/v4/usage_data/increment_counter`.

Output

JSON

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

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the GitLab API key credential is correctly configured and has sufficient permissions to increment usage data counters.
  • Verify the base URL is correct and accessible, especially if using a self-hosted GitLab instance.
  • If skipping authentication, ensure the endpoint allows unauthenticated requests, otherwise the request will fail with an authentication error.
  • Common error messages include 401 Unauthorized (invalid or missing API key) and 404 Not Found (incorrect endpoint path).

Links

Discussion