Skip to main content
POST
/
project
/
{projectId}
/
autofix
Start AutoFix workflow
curl --request POST \
  --url https://us.cybedefend.com/project/{projectId}/autofix \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "projectId": "11111111-2222-3333-4444-555555555555",
  "vulnerabilityId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
}
'
{
  "status": "ok",
  "prUrl": "https://github.com/org/repo/pull/123",
  "message": "AutoFix PR created successfully",
  "reason": "DIFF_UNAPPLICABLE"
}

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

Project unique identifier

Body

application/json
projectId
string
required

Project identifier (UUID)

Example:

"11111111-2222-3333-4444-555555555555"

vulnerabilityId
string
required

Vulnerability identifier (UUID)

Example:

"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"

Response

AutoFix workflow started successfully

status
string
required

Status indicator (ok|error)

Example:

"ok"

prUrl
string
required

Pull / Merge Request URL if success

Example:

"https://github.com/org/repo/pull/123"

message
string
required

Human readable message

Example:

"AutoFix PR created successfully"

reason
string

Machine readable reason when status=error

Example:

"DIFF_UNAPPLICABLE"