Contents

List All Pull Requests for a Repository

List all pull requests for a specific repository that Xcode Cloud can access.

URL

GET https://api.appstoreconnect.apple.com/v1/scmRepositories/{id}/pullRequests

Path Parameters

NameTypeDescription
id Requiredstring

The opaque resource ID that uniquely identifies the Pull Requests resource.

Query Parameters

NameTypeDescription
fields[scmPullRequests] Optional[string]

Additional fields to include for each Pull Requests resource returned by the response.

limit Optionalinteger

The number of Pull Requests resources to return.

fields[scmRepositories] Optional[string]

include Optional[string]

Response Codes

StatusReasonTypeDescription
200OK
Content-Type: application/json
ScmPullRequestsResponse

The request completed successfully.

400Bad Request
Content-Type: application/json
ErrorResponse

An error occurred with your request.

401Unauthorized
Content-Type: application/json
ErrorResponse

403Forbidden
Content-Type: application/json
ErrorResponse

Request not authorized.

404Not Found
Content-Type: application/json
ErrorResponse

Resource not found.

429
Content-Type: application/json
ErrorResponse

See Also

Getting Repository Information