Bulk upload certificates with per-certificate contractor details.

POST /api/v1/files/external_certificates/tracker/bulk

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.

multipart/form-data

Body

  • certificates array[string(binary)] Required

    Multiple certificate PDF files

  • certificates_metadata string Required

    JSON metadata for certificates with contractor details

  • tracker_id string Required

    Tracker ID

Responses

  • 201 application/json

    Certificates uploaded successfully

    Hide response attributes Show response attributes object
    • assignment string

      The ID of the assignment

    • certificates array[object]
      Hide certificates attributes Show certificates attributes object
      • contractor string

        The ID of the contractor for this certificate

      • filename string

        The filename of the uploaded certificate

      • id string

        The ID of the uploaded certificate

    • job string

      The ID of the job

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"
}