AISpectra API Details
<POST> Supply Chain Attacks
1min
The Below parameters are for supply chain attacks. The prerequisite for this API is that you have already done <Post> Model Registration. To know more about different input parameters and how to use API see Supply Chain Attacks
POST
Request Params
Header Parameters
x-api-key
required
String
Enter your API key
Org_id
required
String
Enter your organization id
Body Parameters
repo_type
required
String
The repo that need to be scanned e.g. github, huggingface
repo_url
optional
String
repo url if repo_type selected is github, huggingface
branch_name
optional
String
The branch of repository to analyze. Default is 'main' branch
depth
optional
Integer
clone repository for depth commit. default 1, indicate clone to latest
upload_file
optional
String
'yes' when to upload files to proceed for vulnerability scanning else 'no'. 'model_files' is must when this parameter is 'yes'.
model_id
optional
String
model id to upload files at correct location. "model id" is received during model registration.
model_file
optional
String
comma separated file name that you want to upload
files
optional
String
comma separated file name that you want to upload.
Updated 20 Aug 2024
Did this page help you?