GitLab API

GitlabTool

Actions1000

Overview

This node operation updates a specific feature flag for a project in GitLab using the GitLab API. It is useful for managing feature flags programmatically, such as enabling or disabling features for a project based on conditions or deployment stages. For example, a user can update the status or configuration of a feature flag by specifying the project ID and feature flag name.

Use Case Examples

  1. Updating a feature flag to enable a new feature in a project.
  2. Disabling a feature flag for a project during a rollback scenario.

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 The HTTP method to use for the request, defaulting to GET but can be set to PUT for this operation.
Path Parameters Parameters required in the request path to identify the project and feature flag.

Output

JSON

  • response - The JSON response from the GitLab API after updating the feature flag, containing details of the updated feature flag.

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 for GitLab API are valid and have sufficient permissions to update feature flags.
  • Check that the HTTP method is set to PUT for this update operation.
  • If the API returns an error, review the error message for details such as permission issues or invalid parameters.

Links

Discussion