---
title: "Assign an error group to a user or a team, or unassign it"
method: PUT
path: "/projects/{project_id}/error-groups/{group_id}/assignee"
tags: ["error-tracking"]
---

# Assign an error group to a user or a team, or unassign it

`PUT /projects/{project_id}/error-groups/{group_id}/assignee`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/error-groups/{group_id}/assignee`
- Auth: HTTP bearer

The assignee is independent of the status: an assigned group can be
resolved or ignored and keeps its assignee. A new assignee is emailed
when an email provider is configured, and `status_change` alert rules
that list `assigned` fire.

## Path parameters

- `project_id` integer, required
- `group_id` integer, required

## Request body

- SetErrorGroupAssigneeRequest: Who to assign the group to. Set one of the two ids, or neither to unassign.
  - `team_id` integer, nullable
  - `user_id` integer, nullable

## Response `200`

Assignee set

- ErrorGroupAssigneeResponse
  - `assignee` GroupAssignee, nullable: An assignee with what a reader needs to show it.
    - `email` string, nullable: The user's email; `None` for a team.
    - `id` integer, required
    - `name` string, required: The user's or team's name.
    - `type` string, required: `user` or `team`.
  - `changed` boolean, required: Whether the assignee changed. Assigning the current assignee again changes nothing and notifies nobody.
  - `group_id` integer, required

## Other responses

- `400`: Both ids set, an unknown user or team, or a user without access to the project
- `401`: Not authenticated
- `403`: Missing error_tracking:write or project access
- `404`: Error group not found in the project
- `500`: Internal server error

## Changes

- **2026-11-20** `89a5fa242f36`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/error-groups/:group_id/assignee/put.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
