Content > Files > filesModify
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
Arguments
data: [FileModify!]!
Main argument for mutations.
List of file ids. See also: Unique Identifiers
Example: ["fi_EQzGqWoY"]
Unique shop identifier. See also: Unique Identifiers
Example: "sh_EQzGqWoY"
Data Argument Fields
Alt title of the image
Example: "Lovely Sunset"
Valid when: image_alt's length doesn't exceed 250 characters
Whether file is pinned or not
Example: false
Result
[File!]
Preview (typescript)
Loading module