> ## 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.

# issues_update

> Update an issue. Fields not provided are left unchanged. Set `state` to 'closed' to close it, with `state_reason` saying why. Note that `labels` and `assignees` replace the existing sets rather than adding to them.

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

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

result = await github.issues_update.ainvoke({"owner": ..., "repo": ..., "issueNumber": ..., "body": ...})
```

<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. |
  | `issueNumber` <span className="required" title="required">\*</span> | `integer` | The number that identifies the issue.                                                    |
</div>

## Body

<div className="reference-table">
  | Field                                                        | Type                                                                    | Description           |
  | ------------------------------------------------------------ | ----------------------------------------------------------------------- | --------------------- |
  | `body` <span className="required" title="required">\*</span> | [IssueUpdateBody](/charter/charter/packs/github/issues/objects#issueupdatebody) | The fields to change. |
</div>
