Library Multi Push
Library Push is where multiple images are loaded into the Library via direct upload. Uploading multiple image to the Library automatically creates a unique link which can be used to direct the user to the Product Builder, using the images uploaded in that request.
Requires:
- Internal or External User Token (to associate the Library Item with the User)
or
- API Key or Application Token (to create an Anonymous User and associate the Library Item)
Actions
URL | Verb | Information |
---|---|---|
/library/multi/push | POST | Creates multiple Library items |
Fields
The requests to the Library Multi Push action should be HTTP multipart file upload containing more than one file. Request should set the "Content-Type" HTTP header to "multipart/form-data" and a boundry as standard. Inside the part containing the file contents, the "Content-Type" must be included, specifying the type of the file being uploaded.
The following details are returned about an item:
Field | Data Type | Required | Information |
---|---|---|---|
LibraryItems | Array of LibraryItemDetails | Y | Fields described below. |
ProductBuilderUrl | String | Y | A Product Builder URL for the specified Library Item |
The following details are returned about a Library item.
Field | Data Type | Required | Information |
---|---|---|---|
ItemGuid | String | Y | The Guid of the Library item |
FileMimeType | String | Y | The MIME type of the Library item. |
FileMd5 | String | N | An MD5 hash of the file contents. |
FileSize | Long | N | Length of the file in bytes. |