/repos/{owner}/{repo}/issues/{issue_number}/sub_issuesAdd a sub-issue to an issue
Adds an existing issue as a sub-issue of a parent issue in a repository. Provide the sub-issue's sub_issue_id; it must belong to the same repository owner as the parent, and replace_parent transfers it from its current parent when true. A 201 response returns the added sub-issue.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
The sub-issue to add and whether to replace its current parent.
A 403 is returned when you do not have permission to modify the issue; a 404 when the parent issue or sub-issue cannot be found; a 410 when the requested resource is gone; and a 422 when validation fails or the endpoint is considered spammed. sub_issue_id is required and must identify an issue owned by the same repository owner; set replace_parent to true only when you intend to replace its current parent. The owner path parameter and repo path parameter must identify the repository, and the issue_number path parameter must identify the parent issue.