Skip to main content

Feature flags

You can enable feature flags to test beta features. Use the Feature Flag Service API to enable or disable them.

List feature flags​

Remember to replace <camera-ip>, <username>, <password>, <flag_name1> and <flag_name2> where applicable.

curl --request POST \
--anyauth \
--user "<username>:<password>" \
--header "Content-Type: application/json" \
"http://<servername>/axis-cgi/featureflag.cgi" \
--data '{
"apiVersion": "1.0",
"context": "listAllRequest",
"method": "listAll"
}'

Set feature flag​

curl --request POST \
--anyauth \
--user "<username>:<password>" \
--header "Content-Type: application/json" \
"http://<servername>/axis-cgi/featureflag.cgi" \
--data '{
"apiVersion": "1.0",
"context": "setFlagRequest",
"method": "set",
"params": {
"flagValues": {
"<flag_name1>": <true>,
"<flag_name2>": <false>
}
}
}'