Attach an uploaded document to a resource without a validity. Upload the file through the document upload endpoint first and pass the returned upload_id.
Security
oAuth2ClientCredentials
document_typeContainerDocumentTypes (string) or DriverDocumentTypes (string) or VehicleDocumentTypes (string)(Document Type)required
Any of:
Type of the document
string(ContainerDocumentTypes)
Enum:"COMMUNICATION_SUBCONTRACTOR""CONTAINER_CERTIFICATE""CONTAINER_DAMAGE_REPORT""CONTAINER_INSPECTION_REPORT""CONTAINER_LEASE""CONTAINER_MAINTENANCE_REPORT""CONTAINER_REPAIR_REPORT""CONTAINER_TANK_TEST_CERTIFICATE_2Y5""CONTAINER_TANK_TEST_CERTIFICATE_5Y""CONTAINER_TANK_TEST_CERTIFICATE"
- https://api.qargo.comhttps://api.qargo.com/v1/resources/resource/{resource_id}/documents
{ "upload_id": "f2ef591b-135b-46fa-a604-3d4fda5bfbfb", "document_type": "COMMUNICATION_SUBCONTRACTOR", "name": "string" }
Successful Response
Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "type": "string", "download_url": "", "subject_type": "string", "content_type": "string" }