GitLab API

GitlabTool

Actions1095

Feature_flags → getApiV4ProjectsIdFeatureFlags

AI-generated

Summary

Retrieves feature flags for a specific GitLab project using the GitLab API v4.

Inputs

  • id (required) — The ID or URL-encoded path of the project.
  • scope — The scope of feature flags; one of: enabled, disabled.
  • page — Current page number of results.
  • per_page — Number of items per page.

Output shape

A list of items representing feature flag records.

The source is an OpenApiToolNode. While the OpenAPI schema (not provided) dictates the specific shape of the feature flag objects, the tool's standard behavior for paginated GET requests is to return a list of records.

Examples

Example 1: List all feature flags for a specific project.

Set Path Parameter id to the project ID (e.g., '123'), Method to GET, and leave Query Parameters empty.

Example 2: Filter for only enabled feature flags.

Set Path Parameter id to the project ID, Method to GET, and Query Parameter scope to 'enabled'.

Example 3: Paginate through feature flags in batches.

Set Path Parameter id to the project ID, Method to GET, and Query Parameter page to '2' to get the next page of results.

Links

Discussion