Update Global Event Rule by ID

PATCH {{batmanURL}}/v3/global-event-rules/:ger_id

Update a GER by its ID

Request Body

{"name"=>"My first GER", "description"=>"This is an updated description.", "entity_owner"=>{"id"=>"6182586d66e09421a21340b7", "type"=>"squad"}}

RESPONSES

status: OK

{"data":{"id":9,"org_id":"6182586d66e09421a21340bb","owner_id":"6182586d59e520a955cb966b","name":"My first GER","description":"This is an updated description.","routing_key":"b3a6144abfc4032b2a9050cdc55e2769708add96","entity_owner":{"id":"6182586d66e09421a21340b7","type":"squad"},"rulesets":[{"id":12,"global_event_rule_id":9,"alert_source_shortname":"grafana","alert_source_version":"v1","ordering":[],"catch_all_action":{"route_to":"6182586d66e09421a21340b7"},"created_at":"2023-09-05T23:15:09.85617+05:30","created_by":"6182585566e09421a2134068","updated_at":"2023-09-05T23:15:09.85617+05:30","updated_by":"6182585566e09421a2134068"}],"created_at":"2023-09-05T23:06:10.011581+05:30","created_by":"6182585566e09421a2134068","updated_at":"2023-09-05T23:31:17.059319+05:30","updated_by":"6182585566e09421a2134068"}}