POST:files.json
Commerce APIPOST: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.modify"

Topic: Files

Query Parameters

ids: Comma-separated array of String, required

List of file ids. See also: Unique Identifiers

Example: ?ids=fi_EQzGqWoY,fi_EQzGqWoY


shop_id: String, required

Unique shop identifier. See also: Unique Identifiers

Example: ?shop_id=sh_EQzGqWoY

Request Body

Array of FileModify

[
  {
    "image_alt": "Lovely Sunset",
    "pinned": false
  }
]

Response Body

Array of File

Response Body Type

Loading module