Bulk upload certificates with per-certificate contractor details.
This endpoint accepts multiple PDF certificate files along with JSON metadata specifying contractor details for each certificate. Each certificate can have its own contractor information.
POST
/api/v1/files/external_certificates/tracker/bulk
curl \
--request POST 'https://api.1099policy.com/api/v1/files/external_certificates/tracker/bulk' \
--header "Content-Type: multipart/form-data" \
--form "certificates[]=@file" \
--form "certificates_metadata=[
{
"filename": "cert1.pdf",
"contractor": {
"email": "[email protected]",
"first_name": "John",
"last_name": "Doe",
"company_name": "ABC Construction",
"po_contact_name": "Project Manager",
"po_contact_email": "[email protected]"
},
"insurance_requirement_id": "req_123"
},
{
"filename": "cert2.pdf",
"contractor": {
"email": "[email protected]",
"first_name": "Jane",
"last_name": "Smith",
"company_name": "XYZ Electric"
},
"insurance_requirement_id": "req_456"
}
]
" \
--form "tracker_id=string"
Response examples (201)
{
"assignment": "string",
"certificates": [
{
"contractor": "string",
"filename": "string",
"id": "string"
}
],
"job": "string"
}