v5

latestSwagger 2.0MIT2026-08-03485217850.7 KB
repository

create review requests for a pull request

post/repos/{owner}/{repo}/pulls/{index}/requested_reviewers

Path parameters

ownerstring required

owner of the repo

repostring required

name of the repo

indexinteger required

index of the pull request

Request body

reviewersstring[]
team_reviewersstring[]

Response

PullReviewList

bodystring
comments_countinteger
commit_idstring
dismissedboolean
html_urlstring

HTMLURL is the web URL for viewing the review

idinteger
officialboolean
pull_request_urlstring

HTMLPullURL is the web URL for the pull request

staleboolean
state'APPROVED' | 'PENDING' | 'COMMENT' | 'REQUEST_CHANGES' | 'REQUEST_REVIEW'
submitted_atstring date-time
updated_atstring date-time

Example response

[
  {
    "team": {
      "units": [
        "repo.code",
        "repo.issues",
        "repo.ext_issues",
        "repo.wiki",
        "repo.pulls",
        "repo.releases",
        "repo.projects",
        "repo.ext_wiki"
      ],
      "units_map": {
        "repo.code": "read",
        "repo.ext_issues": "none",
        "repo.ext_wiki": "none",
        "repo.issues": "write",
        "repo.projects": "none",
        "repo.pulls": "owner",
        "repo.releases": "none",
        "repo.wiki": "admin"
      }
    }
  }
]