Contents

List All Git References for a Repository

List all Git references for a specific repository that Xcode Cloud can access.

URL

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

Path Parameters

NameTypeDescription
id Requiredstring

The opaque resource ID that uniquely identifies the Repositories resource.

Query Parameters

NameTypeDescription
fields[scmGitReferences] Optional[string]

Additional fields to include for each Git References resource returned by the response.

limit Optionalinteger

The number of Git References resources to return.

fields[scmRepositories] Optional[string]

include Optional[string]

Response Codes

StatusReasonTypeDescription
200OK
Content-Type: application/json
ScmGitReferencesResponse

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