Przejdź do głównej zawartości

InitiateUploadInput

Dla: Programista

Typ wejściowyInitiateUploadInput

A file to upload: its name, type and exact size, and the record to attach it to.

Pola

PoleTypOpis
entityIdwymaganeID!

Identifier of the order or product to attach the file to; it must exist, and its order must not be archived.

entityTypewymaganeFileEntityType!

Kind of record to attach the file to: an ORDER or a PRODUCT of an order (a print file belongs to its PRODUCT). Invoice documents (PRODUCT_INVOICE, PURCHASE_INVOICE) are read-only for an API key: an upload to them is refused.

filenamewymaganeString!

File name to keep, for example ulotka-a5.pdf (up to 500 characters; characters unsafe for storage are removed).

mimeTypewymaganeString!

Media type of the file, for example application/pdf. By default Prynt accepts print and office formats (PDF, PNG, JPEG, TIFF, WebP, SVG, PostScript, Illustrator, InDesign, Photoshop, ZIP, RAR, XLSX, DOCX, CSV); another type is refused.

sizeByteswymaganeFloat!

Exact size of the file in bytes, at least 1 and at most 5 GB. The upload must send exactly this many bytes.

Używane w