> ## Documentation Index
> Fetch the complete documentation index at: https://docs.r28.ai/charter/llms.txt
> Use this file to discover all available pages before exploring further.

# releases_update

> Update a release; anything omitted is left unchanged. Publishing a draft is this call with `draft: false`.

<div className="tool-route"><span className="tool-row-method" data-method="PATCH">PATCH</span><code>{"https://api.github.com/repos/{owner}/{repo}/releases/{releaseId}"}</code></div>

```python github_releases_update.py theme={null}
from charter.packs import github

result = await github.releases_update.ainvoke({"owner": ..., "repo": ..., "releaseId": ...})
```

<Note>
  Requires `repo`, `read:user`.
</Note>

## Path parameters

<div className="reference-table">
  | Field                                                             | Type      | Description                                                                              |
  | ----------------------------------------------------------------- | --------- | ---------------------------------------------------------------------------------------- |
  | `owner` <span className="required" title="required">\*</span>     | `string`  | The account owner of the repository. The name is not case sensitive.                     |
  | `repo` <span className="required" title="required">\*</span>      | `string`  | The name of the repository without the `.git` extension. The name is not case sensitive. |
  | `releaseId` <span className="required" title="required">\*</span> | `integer` | The unique identifier of the release.                                                    |
</div>

## Body

<div className="reference-table">
  | Field                    | Type                                                            | Description                                                                                                                                             |
  | ------------------------ | --------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | `tagName`                | `string`                                                        | The name of the tag.                                                                                                                                    |
  | `targetCommitish`        | `string`                                                        | Specifies the commitish value that determines where the Git tag is created from. Can be any branch or commit SHA. Unused if the Git tag already exists. |
  | `name`                   | `string`                                                        | The name of the release.                                                                                                                                |
  | `body`                   | `string`                                                        | Text describing the contents of the tag.                                                                                                                |
  | `draft`                  | `boolean`                                                       | `true` to make this a draft (unpublished) release, `false` to publish it. Setting it to `false` is how a draft is published.                            |
  | `prerelease`             | `boolean`                                                       | `true` to identify the release as a prerelease.                                                                                                         |
  | `discussionCategoryName` | `string`                                                        | If specified, a discussion of the specified category is created and linked to the release.                                                              |
  | `makeLatest`             | [MakeLatest](/charter/charter/packs/github/releases/objects#makelatest) | Whether this release should be set as the latest release for the repository — a string, not a boolean. Drafts and prereleases cannot be set as latest.  |
</div>
