Start Scans
Start scanning all the files you submitted for a price-check.
Request
Section titled “Request”Headers
Section titled “Headers”Content-Type: application/jsonAuthorization: Bearer YOUR_LOGIN_TOKEN
Request Body
Section titled “Request Body”The request body is a JSON object containing the scans to start.
A list of scans that you submitted for a check-credits scan 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
Responses
Section titled “Responses”The command was executed.
Response Schema
The response contains the following fields:
Example Response
A typical response from this endpoint:
{ "success": [ "Your-scan-id" ], "failed": []}
Bad request.
Example Response
A typical response from this endpoint:
{ "trigger": [ "The trigger field is required.", "Cannot be null" ]}
Authorization has been denied for this request.
Example Response
A typical response from this endpoint:
{ "type": "https://tools.ietf.org/html/rfc9110#section-15.5.2", "title": "Unauthorized", "status": 401, "traceId": "00-ef0db7690ced98431ac97782051edc77-2c4194d74ae6c08b-00"}
Examples
Section titled “Examples”PATCH https://api.copyleaks.com/v3/scans/startContent-Type: application/jsonAuthorization: Bearer YOUR_LOGIN_TOKEN
{ "trigger": [ "Your-scan-id-1", "Your-scan-id-2" ], "errorHandling": 0}
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 }'