---
title: "Update an issue artifact"
method: PATCH
path: "/repos/{owner}/{repo}/issues/{issue_number}/artifacts/{artifact_number}"
tags: ["issues"]
---

# Update an issue artifact

`PATCH /repos/{owner}/{repo}/issues/{issue_number}/artifacts/{artifact_number}`

## Request

- Base URL: `https://api.github.com`
- URL: `https://api.github.com/repos/{owner}/{repo}/issues/{issue_number}/artifacts/{artifact_number}`
- Auth: none declared

Updates the name, body, or both for an artifact attached to an issue.

Updating an artifact requires permission to update the issue.

The request can return `403` if the repository is read-only or locked, or a
GitHub App installation has only `issues: read` permission.

## Path parameters

- `owner` string, required
- `repo` string, required
- `issue_number` integer, required
- `artifact_number` integer, required

## Request body

- union
  - object
    - `name` string, required: The new human-readable name of the artifact.
    - `body` string: The new artifact content.
  - object
    - `name` string: The new human-readable name of the artifact.
    - `body` string, required: The new artifact content.

## Response `200`

The updated artifact.

- IssueArtifact: Issue artifacts are named, typed pieces of content attached to an issue. They give people and agents a durable place to preserve context and supporting material alongside the work. Each artifact has a number unique within the issue.
  - `id` integer, required: The globally unique identifier of the artifact.
  - `html_url` string, uri: The canonical browser URL for the artifact in its issue context.
  - `number` integer, required: The artifact number within the issue.
  - `type` string, required: The artifact type. The types supported for external creation and filtering are: - `generic` is a general-purpose Markdown document. - `link` represents a named link. - `plan` is a Markdown plan. - `embedded_html` is a self-contained HTML document. Its `body` contains the HTML source.
  - `name` string, required: The human-readable name of the artifact.
  - `body` string, required: The artifact content. For `embedded_html` artifacts, this is the HTML source.
  - `body_html` string, nullable, required: The artifact content rendered as HTML, or `null` if rendering times out or is skipped to protect the response's time budget. The raw content remains available in `body`.
  - `description` string, required: A short, generated summary of the artifact.
  - `creator` object, nullable, required: The user or integration that created the artifact.
    - `login` string, required
    - `id` integer, required
  - `updated_by_actor` object, nullable, required: The user or integration that most recently updated the artifact.
    - `login` string, required
    - `id` integer, required
  - `created_at` string, date-time, nullable, required: The time the artifact was created.
  - `updated_at` string, date-time, nullable, required: The time the artifact was last updated.

## Other responses

- `403`: Forbidden
- `404`: Resource not found
- `410`: Gone
- `422`: Validation failed, or the endpoint has been spammed.
- `429`: Artifact writes are temporarily throttled. Retry after the indicated delay.
- `503`: Service unavailable

## Changes

- **2026-10-28** (2026-03-10) `981aa3c25d9e`: 2 info
  - added the non-success response with the status `403`
  - the response property `description` became required for the status `200`
- **2026-10-27** (2026-03-10) `18226de6c75a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/github/apis/rest/changes/repos/:owner/:repo/issues/:issue_number/artifacts/:artifact_number/patch.md)

---

[API](https://skmtc.dev/github/apis/rest.md) - [All operations](https://skmtc.dev/github/apis/rest/llms.txt) - [OpenAPI document](https://skmtc.dev/github/apis/rest/revisions/981aa3c25d9e?raw)
