Content > Files > storefrontFilesModify
Storefront APIContentFilesstorefrontFilesModify
storefrontFilesModify
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

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

[StorefrontFile!]

Preview (typescript)

Loading module