GitLab API

GitlabTool

Actions1000

Overview

This node operation allows creating a new feature flag for a specific project in GitLab by making a POST request to the GitLab API endpoint `/api/v4/projects/{id}/feature_flags`. It is useful for automating feature flag management within GitLab projects, enabling controlled feature rollouts and testing.

Use Case Examples

  1. Automatically create feature flags for new projects during CI/CD pipelines.
  2. Manage feature flags programmatically to enable or disable features without manual intervention.

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 authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is 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 unique identifier 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 number 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 credentials for authentication

Troubleshooting

  • Ensure the project ID provided in path parameters is correct and accessible.
  • Verify that the GitLab API credentials are valid and have sufficient permissions to create feature flags.
  • Check the request body schema to ensure all required fields for creating a feature flag are included and correctly formatted.

Links

Discussion