GitLab API

GitlabTool

Actions1000

Overview

This node operation deletes a specific feature flag from a GitLab project using the GitLab API. It is useful for managing feature flags programmatically, such as removing outdated or unnecessary flags from a project to maintain clean and efficient feature management.

Use Case Examples

  1. Deleting a feature flag named 'beta-feature' from a project with ID '12345' to disable the feature for all users.
  2. Automating cleanup of feature flags in CI/CD pipelines after feature rollout completion.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, typically a GitLab API key.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but DELETE is relevant for this operation.
Path Parameters Parameters required in the URL path to identify the project and feature flag to delete.

Output

JSON

  • success - Indicates whether the feature flag was successfully deleted.
  • statusCode - HTTP status code returned by the API after the delete operation.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and feature flag name are correct and URL-encoded if necessary.
  • Verify that the API key has sufficient permissions to delete feature flags in the project.
  • Check the base URL to ensure it points to the correct GitLab instance.
  • Common error: 404 Not Found - The project or feature flag does not exist or the user lacks access.
  • Common error: 401 Unauthorized - Authentication failed or API key is invalid.

Links

Discussion