GitLab API icon

GitLab API

Gitlab

Actions917

Overview

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

Use Case Examples

  1. Automatically increment usage counters after specific events in your workflow.
  2. Track API usage by incrementing counters each time an API call is made.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API 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, defaulting to https://gitlab.com.
Method The HTTP method used for the request, defaulting to POST for this operation.
Parameter Schema Defines the schema for the parameters sent in the request body for incrementing the usage data counter.
Request Body Schema Defines the schema for the request body content, which is required for this operation.
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 for authentication

Troubleshooting

  • Ensure the GitLab API key credential is correctly configured and has sufficient permissions to increment usage data counters.
  • Verify the baseUrl is correct and accessible, especially if using a self-hosted GitLab instance.
  • Check that the request body matches the expected schema for incrementing usage data counters to avoid validation errors.

Links

Discussion