Skip to main content
POST
/
integrations
/
gitlab
/
project
/
{projectId}
/
start-scan
Start GitLab repository scan
curl --request POST \
  --url https://us.cybedefend.com/integrations/gitlab/project/{projectId}/start-scan \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "repositoryId": "550e8400-e29b-41d4-a716-446655440000",
  "branch": "main"
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

projectId
string<uuid>
required

The unique identifier of the project associated with the GitLab repository

Example:

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

Body

application/json
repositoryId
string
required

GitLab repository identifier to scan

Example:

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

branch
string

Branch to scan (defaults to configured scan branch or repository default branch)

Example:

"main"

Response

Scan request accepted and processing asynchronously