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

# pulls_update

> Update a pull request's title, body, state or base branch. Closing one is `state: closed`; there is no REST way to change its draft status.

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

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

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

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

## Body

<div className="reference-table">
  | Field                 | Type                                                                    | Description                                                                                                                   |
  | --------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
  | `title`               | `string`                                                                | The new title.                                                                                                                |
  | `body`                | `string`                                                                | The new description.                                                                                                          |
  | `state`               | [PullUpdateState](/charter/charter/packs/github/issues/objects#pullupdatestate) | Whether the pull request is open or closed.                                                                                   |
  | `base`                | `string`                                                                | The branch to merge into. It must already exist on this repository; a pull request cannot be repointed at another repository. |
  | `maintainerCanModify` | `boolean`                                                               | Whether maintainers can commit to the head branch.                                                                            |
</div>
