Skip to content

List feature rules

Request

Retrieves a list of feature rules.

Security
ZephrHmacHttp
Query
tagsstring

A comma-separeted list of feature rule tags (Maximum 50 tags allowed)

Example:tags=tag1,tag2,tag3
cURL
curl -i -X GET \
  'https://demo.api.zephr.com/v3/feature-rules?tags=tag1%2Ctag2%2Ctag3' \
  -H 'Authorization: ZEPHR-HMAC-* <YOUR_TOKEN_HERE>'

Responses

OK - Feature rules have been retrieved successfully

Headers
any
Bodyapplication/json
Array [
idstring
Example:"featureRuleId"
versionnumber
Example:1
tagsArray of any
labelstring
Example:"Test feature"
descriptionstring
Example:"Test feature"
last_updatedstring
Example:"2011-11-11T11:11:11.000"
request_typestring
Enum:"html""json""graphql"
Example:"html"
target_namestring
Example:"article"
match_operationstring
Enum:"equals""contains"
Example:"equals"
target_valuestring
Example:"home_bottom"
css_selectorstring
Example:".trial-download-single.trial"
]
Response
[ { "id": "featureRuleId", "version": 1, "tags": [], "label": "Test feature", "description": "Test feature", "last_updated": "2011-11-11T11:11:11.000", "request_type": "json", "target_name": "article", "match_operation": "equals", "target_value": "home_button" } ]