This method creates a conditional formatting for a selected table indicator.
Resource URL | https://service.belladati.com/api/reports/views/:id/table/indicators/:iid/conditions/create |
HTTP Method |
|
Parameters | Detail | Example | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ID of the table. This ID is part of the | 123 | |||||||||||||||||||||||
| ID of the indicator. This ID is part of the /api/views/:id/table/indicators response. | AVn6TNRofe | |||||||||||||||||||||||
data | Form contents to submit in following JSON format:
|
|
JSON response contains one JSON object with the following element:
index | Order of the condition |
Using curl
:
curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" -d "data={\"evaluationType\": \"INDICATOR\",\"value\":5,\"compareValue\": 15,\"symbol\": \"WARNING\",\"condition\": \"BW\",\"compareType\": \"CONSTANT\",\"color\": \"#15d000\",\"background\": \"#8bffc5\"}" https://service.belladati.com/api/reports/views/5672-UXF46PMUR7/table/indicators/AVn6TNRofe/conditions/create |
The JSON format response:
{ "index": 6 } |