Skip to main content
PATCH
Error

Authorizations

Authorization
string
header
required

Shopify App Bridge session token of the embedded Depict: Search & Merchandising app. The shop in the token determines the merchant; merchant_id parameters must belong to that shop.

Path Parameters

collection_id
string
required

The Shopify collection id (numeric, no gid prefix).

Query Parameters

merchant_id
string
required

Lite merchant id, e.g. shopify-<shop id>.

version
string<uuid>
required

The collection version (UUID) the features belong to.

Body

application/json
upsert
object[]

Cards to create or update. Each is written whole: send the complete card as GET returned it with your change applied (omitting link, text, hover_image or visibility clears it). Read-only fields such as metaobject_id are ignored.

delete_handles
string[]

Handles of this version's cards to remove from it. The card itself is deleted unless another version of the collection still lists it.

Pattern: ^[a-z0-9_-]+$

Response

Saved; the version's cards after the change.

version
string
required

The collection version (UUID) the cards belong to.

cards
object[]
required

The version's cards in stored order (when two cards claim the same grid slot, the earlier one wins).

reread_failed
enum<boolean>

Present when the save succeeded but reading the cards back failed: cards then holds only the cards this PATCH wrote, as sent, with their handles and ids. Do not resend the PATCH; GET the version for its full list.

Available options:
true