/repos/{owner}/{repo}/issues/{issue_number}/labelsAdd labels to an issue
Adds one or more labels to an issue while preserving its existing labels. Identify the issue with owner, repo, and issue_number, then provide labels as an object, an array of label names, or an array of label objects. Label objects can include rationale, suggest, and confidence to describe or defer the label decision.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
A label-addition payload, supplied as an object with labels, an array of label names, or an array of label objects.
A 404 is returned when the specified repository or issue cannot be found. A 410 is returned when the endpoint is no longer available. A 422 is returned when the payload fails validation or the endpoint has been spammed. When using label objects, name is required, confidence must be low, medium, or high, and labels must contain at least one item when that form is used.