Error
A valid request URL is required to generate request examples{
"surface_id": "<string>",
"context": "product",
"market_id": "<string>",
"available_markets": [
"<string>"
],
"generated_at": "<string>",
"slots": [
{
"position": 123,
"product_id": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}API Reference
Preview an unsaved draft of a surface
As the GET preview, but composes the unsaved surface in the body (the upsert’s shape) in place of the saved one, keyed to the saved surface’s id and directives. Use it to show the effect of edits before saving. Read-only: nothing is written.
POST
/
recommendations
/
surfaces
/
{surface_name}
/
preview
Error
A valid request URL is required to generate request examples{
"surface_id": "<string>",
"context": "product",
"market_id": "<string>",
"available_markets": [
"<string>"
],
"generated_at": "<string>",
"slots": [
{
"position": 123,
"product_id": "<string>"
}
]
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Authorizations
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
The surface's URL-safe name.
Pattern:
^[a-z0-9_-]+$Query Parameters
Lite merchant id, e.g. shopify-<shop id>.
Product or collection id for an anchored surface; empty = absent.
Market to compose for; absent or empty = the default market.
Body
application/json
The editor's unsaved surface (its name must be the path's); absent = preview the saved one.
Show child attributes
Show child attributes
Was this page helpful?

