/repos/{owner}/{repo}/issues/{issue_number}/labelsAdd labels to an issue
Adds labels to an issue without removing its existing labels. Supply label names directly or use an object payload with a labels array; label objects can include rationale, suggest, and confidence. A suggested label is stored for human review rather than applied directly.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Label data to add to the issue. You can pass an object containing labels or a direct array of label names or label objects.
A 404 is returned when the repository or issue cannot be found; a 410 is returned when the resource is no longer available. A 422 is returned when validation fails or the endpoint has been spammed. The owner path parameter, repo path parameter, and issue_number path parameter must identify the target issue; the object-form labels array must contain at least one item, each label object must include name, and confidence must be low, medium, or high.