setGlobalEntropyThreshold
A Graze API POST request that sets the global default entropy threshold or a manager-specific entropy threshold, either as a value or as a percentage.
Back to Graze API EndPoint Reference.
Request arguments
Endpoint setGlobalEntropyThreshold
takes the following request arguments:
Name | Type | Required | Description |
---|---|---|---|
| String | Yes | A valid |
| String | Yes | Either:
|
| Number | Yes | Entropy threshold. A number between 0.0 and 1.0 for both an entropy value and a percentage. |
| String | No | Name of the entropy threshold. |
| String | No | An SQL-like filter of the manager. See Filter Search Data for more information on creating SQL-like filters. |
Response
Endpoint setGlobalEntropyThreshold
returns the following response:
Examples
The following examples demonstrate typical use of endpoint setGlobalEntropyThreshold
:
Request example
Example cURL request to set an entropy threshold as a percentage of 50% for manager "manager1":
curl -X POST -u graze:graze -k -v "https://localhost/graze/v1/setGlobalEntropyThreshold" -H "Content-Type: application/json; charset=UTF-8" -d '{ \ "type" : "percentage_reduction", \ "value" : 0.5, \ "name" : "manager1", \ "filter" : "manager='manager1'" \ }'