POST:files.json
POST:files.json
Description
Upload or re-upload a file. Note that even though input is an array, only one file is accepted. Such design is made for API consistency.
Permission bit: "files.create"
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 File
Response Body Type
Loading module