GitLab API icon

GitLab API

Gitlab

Actions880

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 'new-ui' from a project with ID '12345' to disable the feature across the project.
  2. Automating the cleanup of feature flags in a CI/CD pipeline after a feature has been fully rolled out or deprecated.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public or unauthenticated API endpoints.
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 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

  • statusCode - HTTP status code returned by the API indicating the result of the delete operation
  • responseBody - The body of the response from the API, typically empty or containing confirmation of deletion

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID and feature flag name are correctly specified and URL-encoded if necessary.
  • Verify that the authentication credentials have sufficient permissions to delete feature flags in the project.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • Common error messages include 404 Not Found if the project or feature flag does not exist, and 403 Forbidden if the user lacks permissions.

Links

Discussion