v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1477523442.5 KB

Returns a list of pull requests for a specified repository. The return list can be refined by pull request status or pull request author ARN.

post/#X-Amz-Target=CodeCommit_20150413.ListPullRequests

Query parameters

maxResultsstring

Pagination limit

nextTokenstring

Pagination token

Headers

X-Amz-Target'CodeCommit_20150413.ListPullRequests' required

Request body

repositoryNamestring required

The name of the repository for which you want to list pull requests.

authorArnstring

Optional. The Amazon Resource Name (ARN) of the user who created the pull request. If used, this filters the results to pull requests created by that user.

pullRequestStatus'OPEN' | 'CLOSED'

Optional. The status of the pull request. If used, this refines the results to the pull requests that match the specified status.

nextTokenstring

An enumeration token that, when provided in a request, returns the next batch of the results.

maxResultsinteger

A non-zero, non-negative integer used to limit the number of returned results.

Response

Success

pullRequestIdsPullRequestId[] required

The system-generated IDs of the pull requests.

nextTokenstring

An enumeration token that allows the operation to batch the next results of the operation.