Przejdź do głównej zawartości

File

Dla: Programista

Typ obiektowyFile

A file stored in Prynt and attached to a record, for example a print file of a product.

Pola

PoleTypOpis
createdAtDateTime!

When the upload was started.

downloadUrlString

Signed URL to download the file, valid for a limited time (one hour by default): request the field again for a fresh one. Needs no API key (do not send one). Set for every file on Order.files and Product.files; null only for a file whose content is not stored.

entityIdID!

Identifier of the record the file is attached to.

entityTypeFileEntityType!

Kind of record the file is attached to.

idID!

Identifier of the file (UUID).

mimeTypeString!

Media type of the file, for example application/pdf.

originalFilenameString!

File name as uploaded, without characters unsafe for storage (such as / or :).

parentFileIdID

Identifier of the first version of the file; null for the first version itself.

previewUrlString

Signed URL of a larger WebP preview (800 px wide by default), valid like downloadUrl. Null until Prynt has made it, and for files it cannot preview.

sizeBytesString!

Size in bytes, as a decimal string (files may exceed the range of a GraphQL Int). Measured in storage once the upload completes.

thumbnailUrlString

Signed URL of a small WebP thumbnail (200 px wide by default), valid like downloadUrl. Null until Prynt has made it, and for files it cannot preview.

updatedAtDateTime!

When the file record last changed, for example when its upload completed.

uploadStatusFileUploadStatus!

Where the upload of the file stands.

verificationStatusFileVerificationStatus

Prepress verdict on a print file of a product; null for files outside the product file check (for example files of an order).

versionNumberInt!

Version of the file, from 1 for the first upload.

Używane w