File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
packages/ui-extensions/src/surfaces/admin/api/intents Expand file tree Collapse file tree 3 files changed +5
-4
lines changed 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/MetafieldDefinition' , {
44 value : 'gid://shopify/MetafieldDefinition/123456789' ,
5+ data : { ownerType : 'product' } ,
56} ) ;
67
78const response = await activity . complete ;
Original file line number Diff line number Diff line change 11const { intents} = useApi ( TARGET ) ;
22
33const activity = await intents . invoke ( 'edit:shopify/MetaobjectDefinition' , {
4- value : 'gid://shopify/MetaobjectDefinition/123456789' ,
4+ data : { type : 'my_metaobject_definition_type' } ,
55} ) ;
66
77const response = await activity . complete ;
Original file line number Diff line number Diff line change 8383### Metafield Definition
8484| Action | Type | Value | Data |
8585|--------|------|-------|------|
86- | \`create\` | \`shopify/MetafieldDefinition\` | — | — |
87- | \`edit\` | \`shopify/MetafieldDefinition\` | \`gid://shopify/MetafieldDefinition/{id}\` | — |
86+ | \`create\` | \`shopify/MetafieldDefinition\` | — | { ownerType: 'Product' } |
87+ | \`edit\` | \`shopify/MetafieldDefinition\` | \`gid://shopify/MetafieldDefinition/{id}\` | { ownerType: 'Product' } |
8888
8989### Metaobject
9090| Action | Type | Value | Data |
9696| Action | Type | Value | Data |
9797|--------|------|-------|------|
9898| \`create\` | \`shopify/MetaobjectDefinition\` | — | — |
99- | \`edit\` | \`shopify/MetaobjectDefinition\` | \`gid://shopify/MetaobjectDefinition/{id}\` | — |
99+ | \`edit\` | \`shopify/MetaobjectDefinition\` | — | { type: 'my_metaobject_definition_type' } |
100100
101101### Page
102102| Action | Type | Value | Data |
You can’t perform that action at this time.
0 commit comments