Skip to content

Commit 8c2a74f

Browse files
authored
Merge pull request #3473 from Shopify/doc/fix-admin-intents-docs
Doc/fix admin intents docs
2 parents ff759a9 + ce557be commit 8c2a74f

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.changeset/lovely-gorillas-love.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

packages/ui-extensions/src/surfaces/admin/api/intents/examples/edit-metaobject.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const {intents} = useApi(TARGET);
22

33
const activity = await intents.invoke('edit:shopify/Metaobject', {
44
value: 'gid://shopify/Metaobject/123456789',
5+
data: {type: 'shopify--color-pattern'},
56
});
67

78
const response = await activity.complete;

packages/ui-extensions/src/surfaces/admin/api/intents/intents.doc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Where:
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
{

0 commit comments

Comments
 (0)