cURL
curl --request PATCH \ --url https://www.corgea.app/api/v1/start-scan/{transfer_id} \ --header 'CORGEA-TOKEN: <api-key>' \ --header 'Content-Type: multipart/form-data' \ --header 'Upload-Length: <upload-length>' \ --header 'Upload-Name: <upload-name>' \ --header 'Upload-Offset: <upload-offset>' \ --form chunk_data='@example-file' \ --form 'project_name=<string>' \ --form 'branch=<string>' \ --form 'repo_url=<string>' \ --form 'sha=<string>' \ --form partial_scan=true \ --form 'files_to_scan=<string>'
{ "transfer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "status": "success", "message": "Chunk uploaded successfully." }
Continue uploading chunks for an existing scan
API key for authentication
Current byte offset of the upload
Total size of the file in bytes
Name of the file being uploaded
The transfer ID from the initial scan request
The next chunk of data for the scan
Comma-separated list of files to scan
Chunk uploaded successfully
"success"
"Chunk uploaded successfully."