I’ve created a custom Shopify theme that includes several Metaobject definitions used within the theme. I plan to send the theme as a ZIP file to my customers, but since they can’t manually recreate all the metaobject definitions, I want to include something they can easily import to set up those definitions automatically.
What should I provide them so they can import the necessary metaobject definitions along with the theme?
For now, your best bet would be to create a custom app via the store admin. Create it, provide the metaobject access scopes, install the app, retrieve the access token and you are set to use the metaobjectDefinitionCreate mutation. This will work until the end of the year (at least for now). After that, you will not be able to create custom apps, everything will be on the partner dev dashboard.
There’s nothing like a native CSV import of metaobjects( MOB’s) ,or the definitions.
There’s are several spreadsheet based apps for export/importing such data.
A workaround can be to create a shopify-flow automation with the admin-api request action , to do the series of mutations; or one of the other scriptable automation apps.