POST:storefront/files.json
POST:storefront/files.json
Description
Upload or re-upload a customer file. Note that even though input is an array, only one file is accepted. Such design is made for API consistency.
Topic: Files
Query Parameters
Unique shop identifier. See also: Unique Identifiers
Example: ?shop_id=sh_EQzGqWoY
Request Body
Array of FileCreate
[ { "base64": "R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", "content_type": "plain/text", "image_alt": "Lovely Sunset", "name": "123.txt", "pinned": false, "size": "43534636", "storage": "general", "text": "", "url": "http://apple.com/new_bg.gif" } ]
Response Body
Array of StorefrontFile
Response Body Type
Loading module