feature_flags

List all feature flags for a project

Lists all feature flags of the requested project. Use the page and per_page pagination parameters to control the pagination of results.

get/api/v4/projects/{id}/feature_flags

Request

  • Base URL
    https://gitlab.com
  • Auth
    none declared

Path parameters

idstring required

The ID or URL-encoded path of the project

Query parameters

scope'enabled' | 'disabled'

The scope of feature flags, one of: enabled, disabled

pageinteger

Current page number

per_pageinteger

Number of items per page

Response

List all feature flags for a project

namestring required
descriptionstring required
activeboolean required
versionstring required
created_atstring date-time required
updated_atstring date-time required

Example response

[
  {
    "name": "merge_train",
    "description": "merge train feature flag",
    "version": "new_version_flag",
    "created_at": "2019-11-04T08:13:51.423Z",
    "updated_at": "2019-11-04T08:13:51.423Z",
    "strategies": {
      "id": 1,
      "name": "userWithId",
      "parameters": "{\"userIds\": \"user1\"}",
      "scopes": {
        "id": 1,
        "environment_scope": "production"
      },
      "user_list": {
        "id": 1,
        "iid": 1,
        "name": "user_list",
        "user_xids": "user1,user2"
      }
    }
  }
]

Changes

No recorded changes to this operation across all 5 revisions of this API.