API / Resource
Use case / Master data sync

Create Resource Document

Changed on

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.

post/v1/resources/resource/{resource_id}/documents

Request

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

Path parameters

resource_idstring uuid required

Request body

upload_idstring uuid required

Unique identifier of the uploaded file

namestring required

Name of the document

Response

Successful Response

idstring uuid required

Unique identifier of the document

namestring required

Name of the document

typestring required

Type 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