I am following the API documentation for Sample Request. Essentially a copy + paste and changing out the API key.
{
"type":"notification",
"policyDescription":"notification policy description ",
"enabled":"true",
"filter":{
"type":"match-all-conditions",
"conditions":[
{
"field":"message",
"operation":"contains",
"expectedValue":"message"
}
]
},
"timeRestrictions":{
"type":"time-of-day",
"restriction":{
"endHour":5,
"endMin":10,
"startHour":20,
"startMin":23
}
},
"name":"Notification with Delay and Restart Actions",
"delayAction":{
"delayOption":"for-duration",
"duration":{
"timeUnit":"seconds",
"timeAmount":5
}
},
"autoRestartAction":{
"duration":{
"timeUnit":"minutes",
"timeAmount":2
},
"maxRepeatCount":5
}
}The response I get is:
{"message":"Key format is not valid!","took":0.001,"requestId":"fa1fd745-b9e4-4404-869f-2df7ac132939"}%