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

> Update a milestone. Anything omitted is left unchanged.

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

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

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

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

## Body

<div className="reference-table">
  | Field         | Type                                                                    | Description                                                                                                                                           |
  | ------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
  | `title`       | `string`                                                                | The title of the milestone.                                                                                                                           |
  | `state`       | [PullUpdateState](/charter/charter/packs/github/issues/objects#pullupdatestate) | The state of the milestone.                                                                                                                           |
  | `description` | `string`                                                                | A description of the milestone.                                                                                                                       |
  | `dueOn`       | `string`                                                                | The milestone due date. This is a timestamp in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`. <span className="field-constraints">format `date-time`</span> |
</div>
