---
title: "Assign an incident to a user"
method: POST
path: "/api/v1/incidents/{incident_id}/assign"
tags: ["incidents"]
---

# Assign an incident to a user

`POST /api/v1/incidents/{incident_id}/assign`

## Request

- Base URL: `https://monit.rs`
- URL: `https://monit.rs/api/v1/incidents/{incident_id}/assign`
- Auth: HTTP bearer

## Path parameters

- `incident_id` string, uuid, required

## Request body

- IncidentAssign
  - `assign_to_me` boolean
  - `name` string, nullable
  - `email` string, nullable
  - `clear` boolean

## Response `200`

Successful Response

- IncidentDetailResponse
  - `id` string, uuid, required
  - `user_id` string, uuid, required
  - `endpoint_id` string, uuid, required
  - `status` string, required
  - `severity` string, required
  - `title` string, required
  - `summary` string, nullable, required
  - `regression_count` integer, required
  - `first_detected_at` string, date-time, required
  - `last_detected_at` string, date-time, required
  - `acknowledged_at` string, date-time, nullable, required
  - `acknowledged_by_user_id` string, uuid, nullable, required
  - `resolved_at` string, date-time, nullable, required
  - `resolved_by_user_id` string, uuid, nullable, required
  - `opened_alert_sent_at` string, date-time, nullable
  - `last_alerted_severity` string, nullable
  - `recovery_alert_sent_at` string, date-time, nullable
  - `escalation_policy_id` string, uuid, nullable
  - `assigned_to_user_id` string, uuid, nullable
  - `assigned_contact` object, nullable
  - `assigned_at` string, date-time, nullable
  - `assigned_by_user_id` string, uuid, nullable
  - `escalation_status` string
  - `current_escalation_step` integer
  - `next_escalation_at` string, date-time, nullable
  - `last_escalated_at` string, date-time, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, nullable
  - `endpoint` IncidentEndpointSummary
    - `id` string, uuid, required
    - `name` string, required
    - `url` string, required
    - `method` string, required
  - `regressions` IncidentRegressionSummary[]
    - `id` string, uuid, required
    - `endpoint_id` string, uuid, required
    - `regression_type` string, required
    - `severity` string, required
    - `description` string, nullable, required
    - `is_acknowledged` boolean, required
    - `is_resolved` boolean, required
    - `resolved_at` string, date-time, nullable, required
    - `created_at` string, date-time, required
  - `timeline` IncidentTimelineEventResponse[]
    - `id` string, uuid, required
    - `incident_id` string, uuid, required
    - `regression_id` string, uuid, nullable, required
    - `actor_user_id` string, uuid, nullable, required
    - `event_type` string, required
    - `message` string, nullable, required
    - `metadata` object, nullable
    - `created_at` string, date-time, required
  - `regressions_truncated` boolean
  - `timeline_truncated` boolean

## Other responses

- `400`: Invalid request.
- `404`: Not found.
- `409`: Conflicts with existing state.
- `422`: Validation Error

---

[API](https://skmtc.dev/monit/apis/monit-rs-public-api.md) · [All operations](https://skmtc.dev/monit/apis/monit-rs-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/monit/apis/monit-rs-public-api/revisions/7e1923981112?raw)
