---
title: "Open an issue for an error group in the project's repository"
method: POST
path: "/projects/{project_id}/error-groups/{group_id}/issues"
tags: ["error-tracking"]
---

# Open an issue for an error group in the project's repository

`POST /projects/{project_id}/error-groups/{group_id}/issues`

## 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}/issues`
- Auth: HTTP bearer

## Path parameters

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

## Request body

- CreateIssueRequest: Open an issue for a group in the project's repository.
  - `title` string, nullable: The issue's title; the group's title when absent.

## Response `201`

Issue opened and linked

- IssueLinkView: An issue linked to an error group.
  - `created_at` string, date-time, required
  - `created_by` integer, nullable
  - `group_id` integer, required
  - `id` integer, required
  - `number` integer, nullable
  - `provider` string, required: `github` or `gitlab` for an issue of the project's repository, whose state Temps reads; `link` for any other URL.
  - `repository` string, nullable
  - `state` string, nullable: `open` or `closed` when last read; absent for plain links.
  - `state_checked_at` string, date-time, nullable
  - `title` string, required
  - `url` string, required

## Other responses

- `400`: Title too long
- `401`: Not authenticated
- `403`: Error tracking write permission required
- `404`: No such group in the project
- `409`: No repository connected, a provider that is not GitHub or GitLab, an issue already open for the group, or one being opened
- `500`: Internal server error
- `502`: The provider refused or failed the request
- `503`: This server has no git provider integration

## Changes

- **2026-11-21** `451aa64395bb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/error-groups/:group_id/issues/post.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)
