I am following this api doc, creating tech service document, using python/requests. After a few tries, isolated the problem to incident_urgency_rule
first try, using all default values in sample code, all good
"incident_urgency_rule": {
"type": "use_support_hours",
"during_support_hours": {
"type": "constant",
"urgency": "high"
},
"outside_support_hours": {
"type": "constant",
"urgency": "low"
}
},
second try, simply change outside_support_hours / urgency value to high, it gives me 400 error.
"incident_urgency_rule": {
"type": "use_support_hours",
"during_support_hours": {
"type": "constant",
"urgency": "high"
},
"outside_support_hours": {
"type": "constant",
"urgency": "high"
}
},
then tried a few more combinations:
3. remove the whole incident_urgency_rule block from request body, 400 error.
4. simply adding outside_support_hours / urgency value to high, 400 error.
"incident_urgency_rule": {
"type": "constant",
"urgency": "high"
},
There are a few problems from small to big:
- in the doc linked above, it never said incident_urgency_rule is mandatory. and the parent response_play is even deprecated.
- also for outside_support_hour, the urgency default value should be high according to doc.
- error logs are not helpful, it simply gives me a 400 error without any useful info, nor I could find any error logs on the server side ( maybe you have this feature, and I am on a manager role which might lacking the access, please let me know) . It is very hard to understand what causing the problem.
What I want to archive is to using rest api to create a tech service which is high-urgency and escalate as needed.
Thank you