File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
packages/ui-extensions/src/surfaces/admin/api/intents Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ---
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ const {intents} = useApi(TARGET);
22
33const activity = await intents . invoke ( 'edit:shopify/Metaobject' , {
44 value : 'gid://shopify/Metaobject/123456789' ,
5+ data : { type : 'shopify--color-pattern' } ,
56} ) ;
67
78const response = await activity . complete ;
Original file line number Diff line number Diff line change 9090| Action | Type | Value | Data |
9191|--------|------|-------|------|
9292| \`create\` | \`shopify/Metaobject\` | — | \`{ type: 'shopify--color-pattern' }\` |
93- | \`edit\` | \`shopify/Metaobject\` | \`gid://shopify/Metaobject/{id}\` | — |
93+ | \`edit\` | \`shopify/Metaobject\` | \`gid://shopify/Metaobject/{id}\` | \`{ type: 'shopify--color-pattern' }\` |
9494
9595### Metaobject Definition
9696| Action | Type | Value | Data |
@@ -114,7 +114,7 @@ Where:
114114| Action | Type | Value | Data |
115115|--------|------|-------|------|
116116| \`create\` | \`shopify/ProductVariant\` | — | \`{ productId: 'gid://shopify/Product/{id}' }\` |
117- | \`edit\` | \`shopify/ProductVariant\` | \`gid://shopify/ProductVariant/{id}\` | — |` ,
117+ | \`edit\` | \`shopify/ProductVariant\` | \`gid://shopify/ProductVariant/{id}\` | \`{ productId: 'gid://shopify/Product/{id}' }\` |` ,
118118 type : 'IntentInvokeApi' ,
119119 } ,
120120 {
You can’t perform that action at this time.
0 commit comments