Content > Files > filesModify
Commerce APIContentFilesfilesModify
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.


ids: [String!]!

List of file ids. See also: Unique Identifiers

Example: ["fi_EQzGqWoY"]


shop_id: String!

Unique shop identifier. See also: Unique Identifiers

Example: "sh_EQzGqWoY"


Data Argument Fields

image_alt: String

Alt title of the image

Example: "Lovely Sunset"

Valid when: image_alt's length doesn't exceed 250 characters


pinned: Boolean

Whether file is pinned or not

Example: false


Result

[File!]

Preview (typescript)

Loading module