Skip to main content
PUT
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

surface_name
string
required

The surface's URL-safe name.

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

Query Parameters

merchant_id
string
required

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

Body

application/json

anchor_type is one of any, category, lvl1, lvl2, lvl3.

anchor_type
string
required

any on an unanchored surface, category on a category surface, lvl1 on a product surface.

pins
object[]
required
Maximum array length: 100
anchor_id
string | null

The product or collection the set applies to; null = every anchor. Must be null for any.

Required string length: 1 - 256
market_id
string | null

The market the set applies to; null = every market.

Required string length: 1 - 256
surface_id
string | null

Optional guard: when set, must equal the surface's id (400 otherwise).

Response

The saved set.

surface_id
string
required
anchor_type
string
required
anchor_id
string | null
required
market_id
string | null
required
pins
object[]
required