---
title: "Update Issue"
method: PATCH
path: "/api/repos/{namespace}/{repository}/issues/{index}"
tags: ["issues"]
---

# Update Issue

`PATCH /api/repos/{namespace}/{repository}/issues/{index}`

## Request

- Base URL: `https://api.git.mari.zip` (the document declares no server; this is the origin it was published from)
- URL: `https://api.git.mari.zip/api/repos/{namespace}/{repository}/issues/{index}`
- Auth: API key in cookie `gitarena-session`
- TypeScript: <https://skmtc.dev/mari/apis/gitarena/docs/api/repos/:namespace/:repository/issues/:index/patch.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `namespace` string, required
- `repository` string, required
- `index` integer, required

## Request body

- UpdateIssueRequest
  - `assignees` string[], nullable
  - `body` string, nullable
  - `confidential` boolean, nullable
  - `labelsAdd` string[], nullable
  - `labelsRemove` string[], nullable
  - `locked` boolean, nullable
  - `milestoneId` string, uuid, nullable
  - `priority` string, nullable
  - `status` 'open' | 'in_progress' | 'completed' | 'not_planned'
  - `title` string, nullable

## Response `200`

Updated issue

- IssueResponse
  - `assignee_ids` string[], required
  - `assignees` string[], required
  - `author_id` string, uuid, required
  - `author_username` string, required
  - `body` string, required
  - `comment_count` integer, required
  - `git_bug_id` string, required
  - `id` string, uuid, required
  - `index` integer, required
  - `labels` string[], required
  - `milestone` MilestoneBrief
    - `closed` boolean, required
    - `due_date` string, date-time, nullable
    - `id` string, uuid, required
    - `title` string, required
  - `priority` string, required
  - `reactions` ReactionGroup[], required
    - `count` integer, required
    - `emoji` string, required
    - `reacted` boolean, required
  - `status` 'open' | 'in_progress' | 'completed' | 'not_planned', required
  - `title` string, required
  - `updated_at` string, date-time, required

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions
- `404`: Issue not found

## Changes

- **2026-10-29** `efaeb85ac1be`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/mari/apis/gitarena/changes/api/repos/:namespace/:repository/issues/:index/patch.md)

---

[API](https://skmtc.dev/mari/apis/gitarena.md) - [All operations](https://skmtc.dev/mari/apis/gitarena/llms.txt) - [OpenAPI document](https://skmtc.dev/mari/apis/gitarena/revisions/437eec085d26?raw)
