curl -u USERNAME:PASSWORD -XPOST -H "Content-type:application/json" https://FUSION_HOST:8764/api/apps/APP_NAME/query-rewrite/instances -d '{ "id": "block_list_rule_1", "name": "block_list_rule_1", "type": "block_list", "field_name": "id", "field_values": ["6","17"], "enabled": true, "priority":11, "search_terms":["life"], "matching": "keywords" }'
curl -u USERNAME:PASSWORD -XPUT -H "Content-type:application/json" https://FUSION_HOST:8764/api/apps/APP_NAME/query-rewrite/instances -d '{ "id": "block_list_rule_1", "name": "block_list_rule_1", "type": "block_list", "field_name": "id", "field_values": ["6","17"], "enabled": false, "priority":9, "search_terms":["life"], "matching": "keywords" }'
curl -u USERNAME:PASSWORD -XPUT -H 'Content-Type: application/json' https://FUSION_HOST:8764/api/apollo/apps/APP_NAME/query-rewrite/publish
curl -u USERNAME:PASSWORD -XPUT -H "Content-type:application/json" https://FUSION_HOST:8764/api/apollo/apps/APP_NAME/query-rewrite/instances -d '{ "delete": [ “block_list_rule_1" ] }'
curl -u USERNAME:PASSWORD -XPUT -H "Content-type:application/json" https://FUSION_HOST:8764/api/apollo/apps/APP_NAME/query-rewrite/publish
Was this page helpful?