API changes?

API changes?

Dear,

 

We have a setup script for new customers, using the API to configure an account. It looks like your API has changed, as creating a threshold profile for SERVER does not work anymore. I had a look at the docs, and also did a GET to see what the JSON should look like, but I can't see to find the problem. The documentation also is not up to date with the actual API results.

Can you tell me what is wrong with this payload:

     -d '{"profile_name": "Default Threshold - SERVER",     -d '{"profile_name": "Default Threshold - SERVER",            "disk_usage_threshold": {                "comparison_operator": 1,                "trouble": 90,                "strategy": 1,                "polls_check": 1            },            "disk_partition_threshold": {                "comparison_operator": 1,                "trouble": 85,                "strategy": 1,                "polls_check": 1            },            "cpu_threshold": {                "comparison_operator": 1,                "trouble": 85,                "strategy": 1,                "polls_check": 5            },            "server_resource_down_alert": {                "value": true            },            "process_down_alert": {                "value": true,                "severity": 2            },            "type": "SERVER",            "memory_threshold": {                "comparison_operator": 1,                "trouble": 85,                "strategy": 1,                "polls_check": 5            }     }'


Thanks,
Tom