Skip to main content
POST
/
organization
/
{organizationId}
/
project
/
{projectId}
/
github
/
link
Link GitHub repository to project
curl --request POST \
  --url https://api-eu.cybedefend.com/organization/{organizationId}/project/{projectId}/github/link \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "repositoryId": "uuid-value",
  "scanBranch": "main"
}
'

Authorizations

x-api-key
string
header
required

API Key for authentication. You can generate an API key from your personal settings.

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 GitHub repository

Example:

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

Body

application/json
repositoryId
string
required

Repository identifier

Example:

"uuid-value"

scanBranch
string

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

Example:

"main"

Response

Repository linked successfully