v3
latestOpenAPI 3.0.12026-07-31240345599.7 KBNotification rules
Update notification rule
Updates a notification rule with given id in the request.
patch/api/{cloudId}/v1/notification-rules/{id}
Path parameters
idstring required
Identifier of the notification rule
Request body
Example request
{
"name": "Create Alert",
"actionType": "create-alert",
"criteria": {
"type": "match-all"
},
"steps": [
{
"id": "0hcb717e-c442-4185-8bc1-cc998844f567",
"sendAfter": 0,
"contact": {
"method": "email",
"to": "test@atlassian.com"
},
"enabled": true
}
],
"enabled": true
}Response
Returned if the request is successful.
Example response
{
"id": "4292c912-12ac-4ac0-b195-9484fbb98c5c",
"name": "Create Alert",
"actionType": "create-alert",
"criteria": {
"type": "match-all"
},
"timeRestriction": {
"type": "weekday-and-time-of-day",
"restrictions": [
{
"startDay": "monday",
"endDay": "friday",
"startHour": 13,
"endHour": 18,
"startMin": 0,
"endMin": 0
}
]
},
"order": 1,
"steps": [
{
"id": "0hcb717e-c442-4185-8bc1-cc998844f567",
"sendAfter": 0,
"contact": {
"method": "email",
"to": "test@atlassian.com"
},
"enabled": true
}
],
"repeat": {
"loopAfter": 1,
"enabled": true
},
"enabled": true
}