APIRepos
Link repositories to a project
Link repositories to a project by access source id. Select only one access source per repository; re-linking an already-linked repository refreshes its selected access source.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/repos" \ -H "Content-Type: application/json" \ -d '{ "accessSourceIds": [ "c2855c87-2506-413e-9ddc-fc0e63b5d013" ] }'{ "repos": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "accessSourceId": "5d1da253-770d-4b15-8721-3bd2b3fc8a52", "source": "githubApp", "sourceLabel": "string", "provider": "github", "owner": "string", "name": "string", "fullName": "string", "defaultBranch": "string", "isPrivate": true, "linked": true } ]}