Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Bulk create/update shop metafields

Bulk create/update shop metafields

dragonborngem
Shopify Partner
4 0 1

Hi, I have some problems for create/update multiple meta fields for shop object, 

As in document here

https://shopify.dev/tutorials/manage-metafields-with-graphql-admin-api#updating-the-owning-resource,

I can create or multi metafields for product/collection/orders ... but I haven't found anyway to do thing like this for shop object

So, is there anyway / trick so I  can do this in GraphQL API / REST API ?

Thank a lot !

Replies 2 (2)

Gregarican
Shopify Partner
1033 86 293

While I don't see this functionality available in the REST API, perhaps the GraphQL API will allow at least queries --> https://shopify.dev/docs/admin-api/graphql/reference/object/shop?api[version]=2020-04#fields-2020-04. Unsure if create/edit functionality is there, however.

dragonborngem
Shopify Partner
4 0 1

Yeah, there is a way to get all shop metafileds, but i found no way to create/update them. Only create/update private metafields 😞