Skip to main content

Feature flags

There are multiple feature flags that can be enabled to test beta features. Use the following API to enable and disable them.

List feature flags

Don't forget 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>
}
}
}'