Skip to main content
POST
Link GitLab repository to project

Path Parameters

organizationId
string<uuid>
required

The unique identifier of the organization that owns the project

Example:

"550e8400-e29b-41d4-a716-446655440000"

projectId
string<uuid>
required

The unique identifier of the project to link with the GitLab repository

Example:

"550e8400-e29b-41d4-a716-446655440000"

Body

application/json
repositoryId
string
required

GitLab repository identifier

Example:

"550e8400-e29b-41d4-a716-446655440000"

scanBranch
string

Branch to scan (defaults to repository default branch if not specified)

Example:

"main"

Response

GitLab repository linked successfully