[Experimental]

Link a source repository to a project

⚠️ Experimental endpoint: this API is in active development and may change at any time without notice. ⚠️

Links a GitHub repository to a Prisma project via an existing SCM installation.

post/v1/source-repositories

Request

  • Base URL: https://api.prisma.io
  • URL: https://api.prisma.io/v1/source-repositories
  • Auth: one of:
    • OAuth 2 (authorization code, authorization URL https://auth.prisma.io/authorize, token URL https://auth.prisma.io/token, scopes: workspace:admin, offline_access)
    • HTTP bearer

Request body

projectIdstring required
provider'github' required
providerRepositoryIdinteger required
installationIdstring

Optional SCM installation ID to use for linking. When omitted, the API auto-picks the workspace's installation.

Response

Source repository linked.

hintstring

Changes

No recorded changes to this operation across all 1 revision of this API.