Skip to main content
POST
Error

Authorizations

authorization
string
header
required
X-Workspace-ID
string
header
required

Path Parameters

supplier_invoice_id
integer
required

Body

application/json

One related document to copy (from related_documents).

document_type
enum<string>
required
Available options:
project_document,
baseline_document,
project_item_document
document_id
integer
required

Response

201 - application/json

Created

A file attached to a procurement document (purchase order, supplier invoice, goods receipt or inspection), a project or a baseline row.

id
integer
required
filename
string
required

The name the file was uploaded with.

content_type
string
required
Example:

"application/pdf"

byte_size
integer
required
url
string
required

Download URL. On private storage a signed URL that serves the file inline under its filename.

created_at
string<date-time>
required
created_by_id
integer | null
deleted_at
string<date-time> | null

When it was removed from its document. Documents list only files that are not removed; a purchase order revision lists the files it had, removed ones included (their url still works).