curl --request PATCH \
--url https://api.copyleaks.com/v3/scans/start \
--header 'Authorization: Bearer YOUR_LOGIN_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"trigger": ["your-scan-id-1", "your-scan-id-2"],
"errorHandling": 0
}'
from copyleaks.copyleaks import Copyleaks
from copyleaks.models.start import Start, StartErrorHandling
auth_token = Copyleaks.login("[email protected]", "YOUR_API_KEY")
start = Start()
start.set_trigger(["your-scan-id-1", "your-scan-id-2"])
start.set_error_handling(StartErrorHandling.Cancel)
Copyleaks.start(auth_token, start)
{
"success": ["your-scan-id"],
"failed": []
}
Authenticity
Start Scans
Start scans you submitted with action 1 (Check Credits) or 2 (Index Only).
PATCH
/
v3
/
scans
/
start
curl --request PATCH \
--url https://api.copyleaks.com/v3/scans/start \
--header 'Authorization: Bearer YOUR_LOGIN_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"trigger": ["your-scan-id-1", "your-scan-id-2"],
"errorHandling": 0
}'
from copyleaks.copyleaks import Copyleaks
from copyleaks.models.start import Start, StartErrorHandling
auth_token = Copyleaks.login("[email protected]", "YOUR_API_KEY")
start = Start()
start.set_trigger(["your-scan-id-1", "your-scan-id-2"])
start.set_error_handling(StartErrorHandling.Cancel)
Copyleaks.start(auth_token, start)
{
"success": ["your-scan-id"],
"failed": []
}
curl --request PATCH \
--url https://api.copyleaks.com/v3/scans/start \
--header 'Authorization: Bearer YOUR_LOGIN_TOKEN' \
--header 'Content-Type: application/json' \
--data '{
"trigger": ["your-scan-id-1", "your-scan-id-2"],
"errorHandling": 0
}'
from copyleaks.copyleaks import Copyleaks
from copyleaks.models.start import Start, StartErrorHandling
auth_token = Copyleaks.login("[email protected]", "YOUR_API_KEY")
start = Start()
start.set_trigger(["your-scan-id-1", "your-scan-id-2"])
start.set_error_handling(StartErrorHandling.Cancel)
Copyleaks.start(auth_token, start)
{
"success": ["your-scan-id"],
"failed": []
}
properties.action set to 1 (Check Credits) or 2 (Index Only).
Request
Headers
Content-Type: application/json
Authorization: Bearer YOUR_LOGIN_TOKEN
Request Body
The request body is a JSON object containing the scans to start.A list of scans that you submitted with action
1 (Check Credits) or 2 (Index Only) and that you would like to submit for a full scan.This array can scan up to 100 submissions.Example: [ "your-scan-id-1", "your-scan-id-2" ]When set to ignore (ignore = 1) the trigger scans will start running even if some of them are in error mode, when set to cancel (cancel = 0) the request will be cancelled if any error was found. Possible Values: 0 (Cancel), 1 (Ignore).Possible Values:
- 0 : Cancel
- 1 : Ignore

