GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation allows creating a new feature flag for a specific project in GitLab by sending a POST request to the GitLab API endpoint `/api/v4/projects/{id}/feature_flags`. It is useful for managing feature flags programmatically within GitLab projects, enabling or disabling features dynamically based on the flags.

Use Case Examples

  1. Creating a feature flag to enable a new feature for a project before releasing it to all users.
  2. Automating feature flag creation as part of a CI/CD pipeline to control feature rollout.

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 authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to POST for this operation.
Path Parameters Parameters to specify the project ID or URL-encoded path for which the feature flag is created.

Output

JSON

  • id - The ID of the created feature flag.
  • name - The name of the feature flag.
  • description - Description of the feature flag.
  • active - Indicates if the feature flag is active.
  • version - Version of the feature flag.
  • created_at - Timestamp when the feature flag was created.
  • updated_at - Timestamp when the feature flag was last updated.

Dependencies

  • GitLab API authentication token

Troubleshooting

  • Ensure the project ID provided in path parameters is correct and accessible with the provided authentication.
  • Verify that the request body schema matches the expected structure for creating a feature flag in GitLab.
  • Check network connectivity and base URL correctness if the API request fails to reach the GitLab server.

Links

Discussion