v1

latestOpenAPI 3.0.3Apache 2.02026-07-142201861.5 MB
Projects

Link a Repository to a Project

Link a repository to a project. The repository must already exist in the organization (connected via a VCS integration). Idempotent: returns 200 if the link already exists, 201 if created.

post/api/0/projects/{organization_id_or_slug}/{project_id_or_slug}/repo/

Path parameters

organization_id_or_slugstring required

The ID or slug of the organization the resource belongs to.

project_id_or_slugstring required

The ID or slug of the project the resource belongs to. Project slugs are unique within each organization.

Request body

repositoryIdinteger required

The ID of the repository to link.

Response

idstring required
projectIdstring required
repositoryIdstring required
sourcestring required
createdboolean required