Interact with GitHub Issues.
55 endpoints tagged issues, each listing its
parameters and possible responses. Search or scroll the index below to
jump to a specific endpoint.
No endpoints match your search.
GET /issues
List issues assigned to the authenticated user across all visible repositories including owned repositories, member
| Name | In | Required | Description |
|---|---|---|---|
filter | query | no | Indicates which sorts of issues to return. assigned means issues assigned to you. created means issues created by you. mentioned means issues mentioning you. subscribed means issues you're subscribed to updates for. all or repos means all issues you can see, regardless of participation or creation. |
state | query | no | Indicates the state of the issues to return. |
labels | query | no | A list of comma separated label names. Example: bug,ui,@high |
sort | query | no | What to sort results by. |
direction | query | no | The direction to sort the results by. |
since | query | no | Only show results that were last updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. |
collab | query | no | |
orgs | query | no | |
owned | query | no | |
pulls | query | no | |
per_page | query | no | The number of results per page (max 100). For more information, see "Using pagination in the REST API." |
page | query | no | The page number of the results to fetch. For more information, see "Using pagination in the REST API." |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 422 | Validation failed, or the endpoint has been spammed. | yes |
| 304 | Not modified | no |
| 404 | Resource not found | yes |
GET /orgs/{org}/issues
List issues in an organization assigned to the authenticated user.
| Name | In | Required | Description |
|---|---|---|---|
org | path | yes | The organization name. The name is not case sensitive. |
filter | query | no | Indicates which sorts of issues to return. assigned means issues assigned to you. created means issues created by you. mentioned means issues mentioning you. subscribed means issues you're subscribed to updates for. all or repos means all issues you can see, regardless of participation or creation. |
state | query | no | Indicates the state of the issues to return. |
labels | query | no | A list of comma separated label names. Example: bug,ui,@high |
type | query | no | Can be the name of an issue type. |
sort | query | no | What to sort results by. |
direction | query | no | The direction to sort the results by. |
since | query | no | Only show results that were last updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. |
per_page | query | no | The number of results per page (max 100). For more information, see "Using pagination in the REST API." |
page | query | no | The page number of the results to fetch. For more information, see "Using pagination in the REST API." |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 404 | Resource not found | yes |
GET /repos/{owner}/{repo}/assignees
Lists the available assignees for issues in a repository.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
per_page | query | no | The number of results per page (max 100). For more information, see "Using pagination in the REST API." |
page | query | no | The page number of the results to fetch. For more information, see "Using pagination in the REST API." |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 404 | Resource not found | yes |
GET /repos/{owner}/{repo}/assignees/{assignee}
Checks if a user has permission to be assigned to an issue in this repository.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
assignee | path | yes |
| Status | Description | Has JSON body |
|---|---|---|
| 204 | If the assignee can be assigned to issues in the repository, a 204 header with no content is returned. | no |
| 404 | Otherwise a 404 status code is returned. | yes |
GET /repos/{owner}/{repo}/issues
List issues in a repository. Only open issues will be listed.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
milestone | query | no | If an integer is passed, it should refer to a milestone by its number field. If the string * is passed, issues with any milestone are accepted. If the string none is passed, issues without milestones are returned. |
state | query | no | Indicates the state of the issues to return. |
assignee | query | no | Can be the name of a user. Pass in none for issues with no assigned user, and * for issues assigned to any user. |
type | query | no | Can be the name of an issue type. If the string * is passed, issues with any type are accepted. If the string none is passed, issues without type are returned. |
creator | query | no | The user that created the issue. |
mentioned | query | no | A user that's mentioned in the issue. |
issue_field_values | query | no | A comma-separated list of issue field filters in field_slug:value format. |
labels | query | no | A list of comma separated label names. Example: bug,ui,@high |
sort | query | no | What to sort results by. |
direction | query | no | The direction to sort the results by. |
since | query | no | Only show results that were last updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. |
per_page | query | no | The number of results per page (max 100). For more information, see "Using pagination in the REST API." |
page | query | no | The page number of the results to fetch. For more information, see "Using pagination in the REST API." |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 301 | Moved permanently | yes |
| 422 | Validation failed, or the endpoint has been spammed. | yes |
| 404 | Resource not found | yes |
POST /repos/{owner}/{repo}/issues
Any user with pull access to a repository can create an issue. If issues are disabled in the repository, the API returns a 410 Gone status.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
| Status | Description | Has JSON body |
|---|---|---|
| 201 | Response | yes |
| 400 | Bad Request | yes |
| 403 | Forbidden | yes |
| 422 | Validation failed, or the endpoint has been spammed. | yes |
| 503 | Service unavailable | yes |
| 404 | Resource not found | yes |
| 410 | Gone | yes |
GET /repos/{owner}/{repo}/issues/comments
You can use the REST API to list comments on issues and pull requests for a repository. Every pull request is an issue, but not every issue is a pull request.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
sort | query | no | The property to sort the results by. |
direction | query | no | Either asc or desc. Ignored without the sort parameter. |
since | query | no | Only show results that were last updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. |
per_page | query | no | The number of results per page (max 100). For more information, see "Using pagination in the REST API." |
page | query | no | The page number of the results to fetch. For more information, see "Using pagination in the REST API." |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 422 | Validation failed, or the endpoint has been spammed. | yes |
| 404 | Resource not found | yes |
GET /repos/{owner}/{repo}/issues/comments/{comment_id}
You can use the REST API to get comments on issues and pull requests. Every pull request is an issue, but not every issue is a pull request.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
comment_id | path | yes | The unique identifier of the comment. |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 404 | Resource not found | yes |
PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}
You can use the REST API to update comments on issues and pull requests. Every pull request is an issue, but not every issue is a pull request.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
comment_id | path | yes | The unique identifier of the comment. |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 422 | Validation failed, or the endpoint has been spammed. | yes |
DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}
You can use the REST API to delete comments on issues and pull requests. Every pull request is an issue, but not every issue is a pull request.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
comment_id | path | yes | The unique identifier of the comment. |
| Status | Description | Has JSON body |
|---|---|---|
| 204 | Response | no |
PUT /repos/{owner}/{repo}/issues/comments/{comment_id}/pin
You can use the REST API to pin comments on issues.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
comment_id | path | yes | The unique identifier of the comment. |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 401 | Requires authentication | yes |
| 403 | Forbidden | yes |
| 404 | Resource not found | yes |
| 410 | Gone | yes |
| 422 | Validation failed, or the endpoint has been spammed. | yes |
DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/pin
You can use the REST API to unpin comments on issues.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
comment_id | path | yes | The unique identifier of the comment. |
| Status | Description | Has JSON body |
|---|---|---|
| 204 | Response | no |
| 401 | Requires authentication | yes |
| 403 | Forbidden | yes |
| 404 | Resource not found | yes |
| 410 | Gone | yes |
| 503 | Service unavailable | yes |
GET /repos/{owner}/{repo}/issues/events
Lists events for a repository.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
per_page | query | no | The number of results per page (max 100). For more information, see "Using pagination in the REST API." |
page | query | no | The page number of the results to fetch. For more information, see "Using pagination in the REST API." |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 422 | Validation failed, or the endpoint has been spammed. | yes |
GET /repos/{owner}/{repo}/issues/events/{event_id}
Gets a single event by the event id.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
event_id | path | yes |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 404 | Resource not found | yes |
| 410 | Gone | yes |
| 403 | Forbidden | yes |
GET /repos/{owner}/{repo}/issues/{issue_number}
The API returns a 301 Moved Permanently status if the issue was
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
issue_number | path | yes | The number that identifies the issue. |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 301 | Moved permanently | yes |
| 404 | Resource not found | yes |
| 410 | Gone | yes |
| 304 | Not modified | no |
PATCH /repos/{owner}/{repo}/issues/{issue_number}
Issue owners and users with push access or Triage role can edit an issue.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
issue_number | path | yes | The number that identifies the issue. |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 422 | Validation failed, or the endpoint has been spammed. | yes |
| 503 | Service unavailable | yes |
| 403 | Forbidden | yes |
| 301 | Moved permanently | yes |
| 404 | Resource not found | yes |
| 410 | Gone | yes |
POST /repos/{owner}/{repo}/issues/{issue_number}/assignees
Adds up to 10 assignees to an issue. Users already assigned to an issue are not replaced.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
issue_number | path | yes | The number that identifies the issue. |
| Status | Description | Has JSON body |
|---|---|---|
| 201 | Response | yes |
DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees
Removes one or more assignees from an issue.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
issue_number | path | yes | The number that identifies the issue. |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}
Checks if a user has permission to be assigned to a specific issue.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
issue_number | path | yes | The number that identifies the issue. |
assignee | path | yes |
| Status | Description | Has JSON body |
|---|---|---|
| 204 | Response if assignee can be assigned to issue_number | no |
| 404 | Response if assignee can not be assigned to issue_number | yes |
GET /repos/{owner}/{repo}/issues/{issue_number}/comments
You can use the REST API to list comments on issues and pull requests. Every pull request is an issue, but not every issue is a pull request.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
issue_number | path | yes | The number that identifies the issue. |
since | query | no | Only show results that were last updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. |
per_page | query | no | The number of results per page (max 100). For more information, see "Using pagination in the REST API." |
page | query | no | The page number of the results to fetch. For more information, see "Using pagination in the REST API." |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 404 | Resource not found | yes |
| 410 | Gone | yes |
POST /repos/{owner}/{repo}/issues/{issue_number}/comments
You can use the REST API to create comments on issues and pull requests. Every pull request is an issue, but not every issue is a pull request.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
issue_number | path | yes | The number that identifies the issue. |
| Status | Description | Has JSON body |
|---|---|---|
| 201 | Response | yes |
| 403 | Forbidden | yes |
| 410 | Gone | yes |
| 422 | Validation failed, or the endpoint has been spammed. | yes |
| 404 | Resource not found | yes |
GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by
You can use the REST API to list the dependencies an issue is blocked by.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
issue_number | path | yes | The number that identifies the issue. |
per_page | query | no | The number of results per page (max 100). For more information, see "Using pagination in the REST API." |
page | query | no | The page number of the results to fetch. For more information, see "Using pagination in the REST API." |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 301 | Moved permanently | yes |
| 404 | Resource not found | yes |
| 410 | Gone | yes |
POST /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by
You can use the REST API to add a 'blocked by' relationship to an issue.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
issue_number | path | yes | The number that identifies the issue. |
| Status | Description | Has JSON body |
|---|---|---|
| 201 | Response | yes |
| 301 | Moved permanently | yes |
| 403 | Forbidden | yes |
| 410 | Gone | yes |
| 422 | Validation failed, or the endpoint has been spammed. | yes |
| 404 | Resource not found | yes |
DELETE /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by/{issue_id}
You can use the REST API to remove a dependency that an issue is blocked by.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
issue_number | path | yes | The number that identifies the issue. |
issue_id | path | yes | The id of the blocking issue to remove as a dependency |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 301 | Moved permanently | yes |
| 400 | Bad Request | yes |
| 401 | Requires authentication | yes |
| 403 | Forbidden | yes |
| 404 | Resource not found | yes |
| 410 | Gone | yes |
GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocking
You can use the REST API to list the dependencies an issue is blocking.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
issue_number | path | yes | The number that identifies the issue. |
per_page | query | no | The number of results per page (max 100). For more information, see "Using pagination in the REST API." |
page | query | no | The page number of the results to fetch. For more information, see "Using pagination in the REST API." |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 301 | Moved permanently | yes |
| 404 | Resource not found | yes |
| 410 | Gone | yes |
GET /repos/{owner}/{repo}/issues/{issue_number}/events
Lists all events for an issue.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
issue_number | path | yes | The number that identifies the issue. |
per_page | query | no | The number of results per page (max 100). For more information, see "Using pagination in the REST API." |
page | query | no | The page number of the results to fetch. For more information, see "Using pagination in the REST API." |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 410 | Gone | yes |
GET /repos/{owner}/{repo}/issues/{issue_number}/issue-field-values
Lists all issue field values for an issue.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
issue_number | path | yes | The number that identifies the issue. |
per_page | query | no | The number of results per page (max 100). For more information, see "Using pagination in the REST API." |
page | query | no | The page number of the results to fetch. For more information, see "Using pagination in the REST API." |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 301 | Moved permanently | yes |
| 404 | Resource not found | yes |
| 410 | Gone | yes |
POST /repos/{owner}/{repo}/issues/{issue_number}/issue-field-values
Add custom field values to an issue. You can set values for organization-level issue fields that have been defined for the repository's organization.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
issue_number | path | yes | The number that identifies the issue. |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 400 | Bad Request | yes |
| 403 | Forbidden | yes |
| 404 | Resource not found | yes |
| 422 | Validation failed, or the endpoint has been spammed. | yes |
| 503 | Service unavailable | yes |
PUT /repos/{owner}/{repo}/issues/{issue_number}/issue-field-values
Set custom field values for an issue, replacing any existing values. You can set values for organization-level issue fields that have been defined for the repository's organization.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
issue_number | path | yes | The number that identifies the issue. |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 400 | Bad Request | yes |
| 403 | Forbidden | yes |
| 404 | Resource not found | yes |
| 422 | Validation failed, or the endpoint has been spammed. | yes |
| 503 | Service unavailable | yes |
DELETE /repos/{owner}/{repo}/issues/{issue_number}/issue-field-values/{issue_field_id}
Remove a specific custom field value from an issue.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
issue_number | path | yes | The number that identifies the issue. |
issue_field_id | path | yes | The unique identifier of the issue field. |
| Status | Description | Has JSON body |
|---|---|---|
| 204 | Issue field value deleted successfully | no |
| 403 | Forbidden | yes |
| 404 | Resource not found | yes |
| 422 | Validation failed, or the endpoint has been spammed. | yes |
| 503 | Service unavailable | yes |
GET /repos/{owner}/{repo}/issues/{issue_number}/labels
Lists all labels for an issue.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
issue_number | path | yes | The number that identifies the issue. |
per_page | query | no | The number of results per page (max 100). For more information, see "Using pagination in the REST API." |
page | query | no | The page number of the results to fetch. For more information, see "Using pagination in the REST API." |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 301 | Moved permanently | yes |
| 404 | Resource not found | yes |
| 410 | Gone | yes |
POST /repos/{owner}/{repo}/issues/{issue_number}/labels
Adds labels to an issue.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
issue_number | path | yes | The number that identifies the issue. |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 301 | Moved permanently | yes |
| 404 | Resource not found | yes |
| 410 | Gone | yes |
| 422 | Validation failed, or the endpoint has been spammed. | yes |
PUT /repos/{owner}/{repo}/issues/{issue_number}/labels
Removes any previous labels and sets the new labels for an issue.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
issue_number | path | yes | The number that identifies the issue. |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 301 | Moved permanently | yes |
| 404 | Resource not found | yes |
| 410 | Gone | yes |
| 422 | Validation failed, or the endpoint has been spammed. | yes |
DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels
Removes all labels from an issue.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
issue_number | path | yes | The number that identifies the issue. |
| Status | Description | Has JSON body |
|---|---|---|
| 204 | Response | no |
| 301 | Moved permanently | yes |
| 404 | Resource not found | yes |
| 410 | Gone | yes |
DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}
Removes the specified label from the issue, and returns the remaining labels on the issue. This endpoint returns a 404 Not Found status if the label does not exist.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
issue_number | path | yes | The number that identifies the issue. |
name | path | yes |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 301 | Moved permanently | yes |
| 404 | Resource not found | yes |
| 410 | Gone | yes |
PUT /repos/{owner}/{repo}/issues/{issue_number}/lock
Users with push access can lock an issue or pull request's conversation.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
issue_number | path | yes | The number that identifies the issue. |
| Status | Description | Has JSON body |
|---|---|---|
| 204 | Response | no |
| 403 | Forbidden | yes |
| 410 | Gone | yes |
| 404 | Resource not found | yes |
| 422 | Validation failed, or the endpoint has been spammed. | yes |
DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock
Users with push access can unlock an issue's conversation.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
issue_number | path | yes | The number that identifies the issue. |
| Status | Description | Has JSON body |
|---|---|---|
| 204 | Response | no |
| 403 | Forbidden | yes |
| 404 | Resource not found | yes |
GET /repos/{owner}/{repo}/issues/{issue_number}/parent
You can use the REST API to get the parent issue of a sub-issue.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
issue_number | path | yes | The number that identifies the issue. |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 301 | Moved permanently | yes |
| 404 | Resource not found | yes |
| 410 | Gone | yes |
DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue
You can use the REST API to remove a sub-issue from an issue.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
issue_number | path | yes | The number that identifies the issue. |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 400 | Bad Request | yes |
| 404 | Resource not found | yes |
GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues
You can use the REST API to list the sub-issues on an issue.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
issue_number | path | yes | The number that identifies the issue. |
per_page | query | no | The number of results per page (max 100). For more information, see "Using pagination in the REST API." |
page | query | no | The page number of the results to fetch. For more information, see "Using pagination in the REST API." |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 404 | Resource not found | yes |
| 410 | Gone | yes |
POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues
You can use the REST API to add sub-issues to issues.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
issue_number | path | yes | The number that identifies the issue. |
| Status | Description | Has JSON body |
|---|---|---|
| 201 | Response | yes |
| 403 | Forbidden | yes |
| 410 | Gone | yes |
| 422 | Validation failed, or the endpoint has been spammed. | yes |
| 404 | Resource not found | yes |
PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority
You can use the REST API to reprioritize a sub-issue to a different position in the parent list.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
issue_number | path | yes | The number that identifies the issue. |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 403 | Forbidden | yes |
| 404 | Resource not found | yes |
| 422 | Validation failed, or the endpoint has been spammed. | yes |
| 503 | Service unavailable | yes |
GET /repos/{owner}/{repo}/issues/{issue_number}/timeline
List all timeline events for an issue.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
issue_number | path | yes | The number that identifies the issue. |
per_page | query | no | The number of results per page (max 100). For more information, see "Using pagination in the REST API." |
page | query | no | The page number of the results to fetch. For more information, see "Using pagination in the REST API." |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 404 | Resource not found | yes |
| 400 | Bad Request | yes |
| 410 | Gone | yes |
GET /repos/{owner}/{repo}/labels
Lists all labels for a repository.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
per_page | query | no | The number of results per page (max 100). For more information, see "Using pagination in the REST API." |
page | query | no | The page number of the results to fetch. For more information, see "Using pagination in the REST API." |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 404 | Resource not found | yes |
POST /repos/{owner}/{repo}/labels
Creates a label for the specified repository with the given name and color. The name and color parameters are required. The color must be a valid hexadecimal color code.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
| Status | Description | Has JSON body |
|---|---|---|
| 201 | Response | yes |
| 422 | Validation failed, or the endpoint has been spammed. | yes |
| 404 | Resource not found | yes |
GET /repos/{owner}/{repo}/labels/{name}
Gets a label using the given name.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
name | path | yes |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 404 | Resource not found | yes |
PATCH /repos/{owner}/{repo}/labels/{name}
Updates a label using the given label name.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
name | path | yes |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
DELETE /repos/{owner}/{repo}/labels/{name}
Deletes a label using the given label name.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
name | path | yes |
| Status | Description | Has JSON body |
|---|---|---|
| 204 | Response | no |
GET /repos/{owner}/{repo}/milestones
Lists milestones for a repository.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
state | query | no | The state of the milestone. Either open, closed, or all. |
sort | query | no | What to sort results by. Either due_on or completeness. |
direction | query | no | The direction of the sort. Either asc or desc. |
per_page | query | no | The number of results per page (max 100). For more information, see "Using pagination in the REST API." |
page | query | no | The page number of the results to fetch. For more information, see "Using pagination in the REST API." |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 404 | Resource not found | yes |
POST /repos/{owner}/{repo}/milestones
Creates a milestone.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
| Status | Description | Has JSON body |
|---|---|---|
| 201 | Response | yes |
| 404 | Resource not found | yes |
| 422 | Validation failed, or the endpoint has been spammed. | yes |
GET /repos/{owner}/{repo}/milestones/{milestone_number}
Gets a milestone using the given milestone number.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
milestone_number | path | yes | The number that identifies the milestone. |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 404 | Resource not found | yes |
PATCH /repos/{owner}/{repo}/milestones/{milestone_number}
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
milestone_number | path | yes | The number that identifies the milestone. |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
DELETE /repos/{owner}/{repo}/milestones/{milestone_number}
Deletes a milestone using the given milestone number.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
milestone_number | path | yes | The number that identifies the milestone. |
| Status | Description | Has JSON body |
|---|---|---|
| 204 | Response | no |
| 404 | Resource not found | yes |
GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels
Lists labels for issues in a milestone.
| Name | In | Required | Description |
|---|---|---|---|
owner | path | yes | The account owner of the repository. The name is not case sensitive. |
repo | path | yes | The name of the repository without the .git extension. The name is not case sensitive. |
milestone_number | path | yes | The number that identifies the milestone. |
per_page | query | no | The number of results per page (max 100). For more information, see "Using pagination in the REST API." |
page | query | no | The page number of the results to fetch. For more information, see "Using pagination in the REST API." |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
GET /user/issues
List issues across owned and member repositories assigned to the authenticated user.
| Name | In | Required | Description |
|---|---|---|---|
filter | query | no | Indicates which sorts of issues to return. assigned means issues assigned to you. created means issues created by you. mentioned means issues mentioning you. subscribed means issues you're subscribed to updates for. all or repos means all issues you can see, regardless of participation or creation. |
state | query | no | Indicates the state of the issues to return. |
labels | query | no | A list of comma separated label names. Example: bug,ui,@high |
sort | query | no | What to sort results by. |
direction | query | no | The direction to sort the results by. |
since | query | no | Only show results that were last updated after the given time. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. |
per_page | query | no | The number of results per page (max 100). For more information, see "Using pagination in the REST API." |
page | query | no | The page number of the results to fetch. For more information, see "Using pagination in the REST API." |
| Status | Description | Has JSON body |
|---|---|---|
| 200 | Response | yes |
| 404 | Resource not found | yes |
| 304 | Not modified | no |