Register a source repository
POST/v1/sources
If the organization's GitHub App installation covers the repository, access is checked right away. Otherwise the response carries the deploy key to add on GitHub before checking access.
Request​
Responses​
- 201
- 400
- 401
- 403
- 409
- 422
- 503
created
VALIDATION_ERROR
INVALID_TOKEN / INVALID_AUDIENCE / INVALID_ISSUER / TOKEN_EXPIRED / TOKEN_REVOKED / MTLS_REQUIRED
INSUFFICIENT_SCOPE (see above) or FEATURE_NOT_ENABLED — the operation is not enabled for the organization (the same permission that enables the screen in the console); details: { permission }.
CONFLICT — a live repository with this name already exists / IDEMPOTENCY_KEY_REUSED
VALIDATION_ERROR — invalid repository, ref or workspace
GITHUB_UNAVAILABLE — GitHub did not respond