Reassign Incident
- This endpoint is used to reassign the unresolved incident to any user or escalation policy or squads by ID.
- Requires
access_token
as aBearer {{token}}
in theAuthorization
header. type
can be eitheruser
orescalationpolicy
orsquad
Request Body
{"reassignTo"=>{"id"=>"<userid|squadid|escalationpolicyid>", "type"=>"user|squad|escalationpolicy"}}
RESPONSES
status: OK
{"data":{"id":"620babcc5b1ceb365c06bda0","service_id":"612ce2a67115ff9a44a1052d","alert_source_id":"5a9002f082bb573a2bc779eb","organization_id":"60cb200bc9de4a0008d2fc41","incidentNumber":0,"message":"[warning] DeploymentReplicasNotUpdated Deployment replicas are outdated","assignedTo":[{"id":"6130ce7a4579f016916f89ae","type":"escalationpolicy","timeOfAssignment":"2022-02-15T13:34:04.593Z"},{"id":"612f9bbc4afb140007314590","type":"user","timeOfAssignment":"2022-02-22T04:06:50.951Z"}],"description":"Description: Replicas are not updated and available for deployment /cougar-prod-spot\nSummary: Deployment replicas are outdated\nLabels\n Alertname: DeploymentReplicasNotUpdated\n App: prometheus\n Chart: prometheus-8.1.0\n Component: kube-state-metrics\n Deployment: cougar-prod-spot\n Heritage: Tiller\n Instance: 100.125.0.3:8080\n Job: kubernetes-service-endpoints\n Kubernetes name: peeking-beetle-prometheus-kube-state-metrics\n Kubernetes namespace: monitoring\n Namespace: greythr\n Release: peeking-beetle\n Severity: warning\n Generator URL: https://prometheus.mgmt.ikkat.gtkops.in/graph?g0.expr=%28%28kube_deployment_status_replicas_updated+%21%3D+kube_deployment_spec_replicas%29+or+%28kube_deployment_status_replicas_available+%21%3D+kube_deployment_spec_replicas%29%29+unless+%28kube_deployment_spec_paused+%3D%3D+1%29\u0026g0.tab=1","status":"triggered","timeOfCreation":"2022-02-15T13:34:04.593Z","tags":null,"logs":[{"action":"triggered","assignedTo":"escalationpolicy","id":"6130ce7a4579f016916f89ae","time":"2022-02-15T13:34:04.328Z","reason":"","additionalInfo":null},{"action":"reassigned","assignedTo":"user","id":"612f9bbc4afb140007314590","time":"2022-02-22T04:06:50.951Z","reason":"","additionalInfo":null}],"analytics":{"tta":{"time":0,"userId":"000000000000000000000000","escalationPolicyId":"000000000000000000000000","squadId":"000000000000000000000000"},"ttr":{"time":0,"userId":"000000000000000000000000","escalationPolicyId":"000000000000000000000000","squadId":"000000000000000000000000"}},"pinned_messages":null,"created_by":"000000000000000000000000","deleted":false,"event_count":1,"owner":{"id":"6129c3ddabffee4c428b420d","type":"team"},"access_control":null,"relevantUsers":[],"relevantEscalationPolicies":[],"relevantSquads":[],"relevantSchedules":[],"relevantPeopleLogs":[],"responseNotes":[],"attachments":[]}}