Feature Flags
Get Feature Flags
Retrieve a paginated list of feature flags. You can search for specific feature flags or order them by field
get/resources/feature-flags/v1
Request
- Base URLhttp://localhost:8181
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
offsetnumber
Page offset of the results to return
limitnumber
Number of results per page
filterstring
Search input, searchable by name
orderBystring
Field to order results by create date (createdAt) or name (name)
sortType'ASC' | 'DESC'
Sort type, ASC for ascending, DESC for descending
Response
Example response
{
"items": [
{
"id": "e6a5012c-cbeb-4c1e-ab80-e5f43efd44e3",
"name": "Test Feature Flag",
"on": true,
"offTreatment": "false",
"defaultTreatment": "true",
"feature": {
"id": "e6a5012c-cbeb-4c1e-ab80-e5f43efd44e3",
"key": "test-feature",
"name": "Test Feature"
},
"description": "This is a test feature flag",
"metadata": "{}",
"rules": [
{
"description": "This is the first rule",
"conditionLogic": "and",
"conditions": [
{
"attribute": "myCustomAttribute",
"attributeType": "custom",
"op": "in_list",
"value": {
"list": [
"valueA",
"valueB"
]
}
}
],
"treatment": "true"
}
],
"updatedAt": "2022-01-01T00:00:00",
"createdAt": "2022-01-01T00:00:00"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.