---
title: "POST /api/im/incidents/{id}/assign"
method: POST
path: "/api/im/incidents/{id}/assign"
tags: ["Im"]
---

# POST /api/im/incidents/{id}/assign

`POST /api/im/incidents/{id}/assign`

## Request

- Base URL: `https://uptimeify.io`
- URL: `https://uptimeify.io/api/im/incidents/{id}/assign`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- object
  - `userId` string, required: Replaces the current holder of the role. To unassign use bulk with payload.userId null.
  - `role` 'commander' | 'tech_lead' | 'comms' | 'assignee', required

## Response `200`

Successful response

- object
  - `id` integer, required
  - `incidentId` integer, required
  - `userId` string, required
  - `role` 'commander' | 'tech_lead' | 'comms' | 'assignee', required
  - `createdAt` string, date-time, required
  - `user` object, required
    - `name` string, nullable, required
    - `email` string, nullable, required: null unless the caller is an organization admin.

## Other responses

- `400`: Invalid or missing parameters.
- `401`: Missing, invalid or expired API token.
- `404`: No such resource, or not visible to this token.
- `500`: Unexpected server error.

---

[API](https://skmtc.dev/uptimeify/apis/uptimeify-rest-api.md) · [All operations](https://skmtc.dev/uptimeify/apis/uptimeify-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/uptimeify/apis/uptimeify-rest-api/revisions/2129a771ee7e?raw)
