Hi, is it possible to update Customer tags, metafield ?
via Storefront API, Customer API or with some any other news
Hi, is it possible to update Customer tags, metafield ?
via Storefront API, Customer API or with some any other news
Hey @radovanhodor
Yep, with the customerUpdate mutation.
but this is admin API.
i was asking whether it is by these 2:
via Storefront API, Customer API (new updates, if i missed something).
I am using react hydrogen storefront.
My mistake, thanks for the clarification! That’s not available using Storefront API or the new Customer API. If you’re building on Hydrogen, one work around would be to hit the Admin API under the hood.
How would u hit the Admin API under the hood
The process might look like passing a (verified) customer ID to a route which calls the Admin API to update customer tags. Be sure to keep this on the server side (in a loader or action).