Fetch the Rule for a Ruleset in an Environment
1 min
GET
https://api.optimizely.com/flags/v1//projects/{project_id}/flags/{flag_key}/environments/{environment_key}/rules/{rule_key}
project_idintegerThe project identifier
flag_keystringThe Flag identifier
environment_keystringThe Environment identifier
rule_keystringThe Rule identifier
200Successful retrieval of a Rule.
400Malformed requests and invalid parameter names and types
401Invalid credentials
403Do not have permission to perform the operation
404Not found. No content
curl --request GET \
--url https://api.optimizely.com/flags/v1//projects/{project_id}/flags/{flag_key}/environments/{environment_key}/rules/{rule_key} \
--header 'accept: application/json'