Skip to main content

Type Alias: SavePodFilesToMediaLibrary

SavePodFilesToMediaLibrary = (shortCode) => Promise<{ fileName: string; url: string; }>

Function

Saves the Print on Demand (POD) designs for a configuration as <shortCode>.zip in _products/pod-files/ in the customer's Media Library. Saved ZIPs count toward the customer's storage limit. Saving the same file name creates a revision.

The promise rejects if the archive cannot be built or saved, including when the configuration has no POD files. This action leaves error handling to the caller.

Parameters​

shortCode​

string

The configuration short code for a standard product.

Returns​

Promise<{ fileName: string; url: string; }>

The saved ZIP name and its persistent URL.