Reassign Incident

POST https://platform-backend.squadcast.com/v2/organizations/:organizationID/incidents/:incidentID/reassign

  • This endpoint is used to reassign the unresolved incident to any user or escalation policy or squads by ID.
  • Requires access_token as a Bearer {{token}} in the Authorization header.
  • type can be either user or escalationpolicy or squad

Request Body

{"reassignTo"=>{"id"=>"<userid|squadid|escalationpolicyid>", "type"=>"user|squad|escalationpolicy"}}

RESPONSES

status: OK

{&quot;data&quot;:{&quot;id&quot;:&quot;620babcc5b1ceb365c06bda0&quot;,&quot;service_id&quot;:&quot;612ce2a67115ff9a44a1052d&quot;,&quot;alert_source_id&quot;:&quot;5a9002f082bb573a2bc779eb&quot;,&quot;organization_id&quot;:&quot;60cb200bc9de4a0008d2fc41&quot;,&quot;incidentNumber&quot;:0,&quot;message&quot;:&quot;[warning] DeploymentReplicasNotUpdated Deployment replicas are outdated&quot;,&quot;assignedTo&quot;:[{&quot;id&quot;:&quot;6130ce7a4579f016916f89ae&quot;,&quot;type&quot;:&quot;escalationpolicy&quot;,&quot;timeOfAssignment&quot;:&quot;2022-02-15T13:34:04.593Z&quot;},{&quot;id&quot;:&quot;612f9bbc4afb140007314590&quot;,&quot;type&quot;:&quot;user&quot;,&quot;timeOfAssignment&quot;:&quot;2022-02-22T04:06:50.951Z&quot;}],&quot;description&quot;:&quot;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&quot;,&quot;status&quot;:&quot;triggered&quot;,&quot;timeOfCreation&quot;:&quot;2022-02-15T13:34:04.593Z&quot;,&quot;tags&quot;:null,&quot;logs&quot;:[{&quot;action&quot;:&quot;triggered&quot;,&quot;assignedTo&quot;:&quot;escalationpolicy&quot;,&quot;id&quot;:&quot;6130ce7a4579f016916f89ae&quot;,&quot;time&quot;:&quot;2022-02-15T13:34:04.328Z&quot;,&quot;reason&quot;:&quot;&quot;,&quot;additionalInfo&quot;:null},{&quot;action&quot;:&quot;reassigned&quot;,&quot;assignedTo&quot;:&quot;user&quot;,&quot;id&quot;:&quot;612f9bbc4afb140007314590&quot;,&quot;time&quot;:&quot;2022-02-22T04:06:50.951Z&quot;,&quot;reason&quot;:&quot;&quot;,&quot;additionalInfo&quot;:null}],&quot;analytics&quot;:{&quot;tta&quot;:{&quot;time&quot;:0,&quot;userId&quot;:&quot;000000000000000000000000&quot;,&quot;escalationPolicyId&quot;:&quot;000000000000000000000000&quot;,&quot;squadId&quot;:&quot;000000000000000000000000&quot;},&quot;ttr&quot;:{&quot;time&quot;:0,&quot;userId&quot;:&quot;000000000000000000000000&quot;,&quot;escalationPolicyId&quot;:&quot;000000000000000000000000&quot;,&quot;squadId&quot;:&quot;000000000000000000000000&quot;}},&quot;pinned_messages&quot;:null,&quot;created_by&quot;:&quot;000000000000000000000000&quot;,&quot;deleted&quot;:false,&quot;event_count&quot;:1,&quot;owner&quot;:{&quot;id&quot;:&quot;6129c3ddabffee4c428b420d&quot;,&quot;type&quot;:&quot;team&quot;},&quot;access_control&quot;:null,&quot;relevantUsers&quot;:[],&quot;relevantEscalationPolicies&quot;:[],&quot;relevantSquads&quot;:[],&quot;relevantSchedules&quot;:[],&quot;relevantPeopleLogs&quot;:[],&quot;responseNotes&quot;:[],&quot;attachments&quot;:[]}}