API / Company
Use case / Master data sync

Create Company Document

Changed on

Upload a document for a specific company.

post/v1/companies/company/{company_id}/documents

Request

  • Base URL: https://api.qargo.com
  • URL: https://api.qargo.com/v1/companies/company/{company_id}/documents
  • Auth: OAuth 2 (client credentials, token URL /v1/auth/token)

Path parameters

company_idstring uuid required

Request body

upload_idstring uuid required

Unique identifier of the uploaded file

namestring required

Name of the document

Example request

{
  "document_type": "SUBCONTRACTOR_CONTRACT",
  "name": "subcontractor-contract-2026.pdf",
  "upload_id": "f2ef591b-135b-46fa-a604-3d4fda5bfbfb",
  "validity": {
    "end_time": "2026-12-31T23:59:59Z",
    "generate_unavailability": true,
    "start_time": "2026-01-01T00:00:00Z",
    "type": "SUBCONTRACTOR_CONTRACT"
  }
}

Response

Successful Response

idstring uuid required

Unique identifier of the document

namestring required

Name of the document

download_urlstring

Relative URL from the base URL to download the document

subject_typestring required

Linked subject of the document

content_typestring nullable

Content type of the document

Changes

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status