/repos/{owner}/{repo}/issues/{issue_number}Update an issue
Updates the title, body, state, assignees, labels, milestone, type, or field values of an issue. Supply only the properties you want to change; state_reason applies only when you change state, and duplicate_issue_id applies only when state_reason is duplicate. Users with push access or the Triage role can edit issues, but milestone, label, type, and field-value changes require push access.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Issue properties to update. All fields are optional; include only the properties you want to change.
A 403 is returned when the authenticated user cannot edit the issue, and a 404 is returned when the repository or issue cannot be found. A 410 indicates the requested resource is no longer available; a 422 indicates validation failure or that the endpoint has been spammed. A 503 indicates the service is unavailable; state must be open or closed, state_reason must be one of the documented values, and each issue_field_values item must include field_id and value.