GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows making a POST request to the GitLab API endpoint `/api/v4/features/{name}` to interact with a specific feature identified by its name. It is useful for scenarios where you need to update or manipulate feature flags or feature-related data in a GitLab instance programmatically.

Use Case Examples

  1. Updating a feature flag in a GitLab project by specifying the feature name and sending the required data in the request body.
  2. Automating feature management in GitLab through API calls within an n8n workflow.

Properties

Name Meaning
Skip Authentication Determines whether to skip API authentication for the request.
Authentication Specifies the authentication method to use if authentication is not skipped.
baseUrl The base URL of the GitLab instance to which the API request is sent.
Method The HTTP method to use for the API request (GET, POST, PUT, DELETE, HEAD, PATCH).
Path Parameters Parameters to be included in the URL path, specifically the 'name' of the feature to target.

Output

JSON

  • response - The JSON response returned from the GitLab API after making the POST request to the feature endpoint.

Dependencies

  • GitLab API credentials for authentication

Troubleshooting

  • Ensure the 'name' path parameter is correctly set and matches an existing feature in GitLab to avoid 404 errors.
  • If authentication is enabled, verify that the GitLab API credentials are valid and have sufficient permissions to perform the operation.
  • Check the baseUrl to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion