Update Route
POST
/route/upsertRequest
Header Params
Content-Type
string
optional
Example:
application/json
Body Params application/json
integration_id
integer
Shared alert integration ID
default
object
Default route
Must provide either this or conditional route
channel_ids
array[integer]
Channel list
cases
array[object (RouteCase) {3}]
Conditional route
Must provide either this or default route
if
array[object (Filter) {3}]
Matching conditions
Outer conditions, AND relationship between conditions
channel_ids
array[integer]
required
fallthrough
boolean
optional
Example
{
"integration_id": 0,
"default": {
"channel_ids": [
0
]
},
"cases": [
{
"if": [
{
"key": "title",
"oper": "IN",
"vals": [
"string"
]
}
],
"channel_ids": [
0
],
"fallthrough": true
}
]
}
Request samples
Responses
成功(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
error
object
optional
Example
{
"error": {}
}
Last modified: 2 个月前