Skip to main content
POST
/
code-upload
Upload Source Code File
curl --request POST \
  --url https://www.corgea.app/api/v1/code-upload \
  --header 'CORGEA-TOKEN: <api-key>' \
  --header 'Content-Type: multipart/form-data' \
  --form file=@example-file
{
"status": "ok"
}

Authorizations

CORGEA-TOKEN
string
header
required

API key for authentication

Query Parameters

run_id
string
required

The scan run ID associated with this file

path
string
required

The repository path of the file being uploaded

Body

multipart/form-data
file
file
required

The source code file to upload

Response

Source code file uploaded successfully

status
enum<string>
required
Available options:
ok
Example:

"ok"

I