I have created a Edit Profile form where in there is field which are stored in Tags section in Shopify.
It was editable using Admin REST API of Shopify(https://shopify.dev/docs/api/admin-rest/2024-07/resources/customer#put-customers-customer-id))
But there is a constraint to store access token in Shopify itself and I don’t have an external server where I can store it.
Is there a work around to edit Tags on click of Button dynamically from frontend for that specific customer?
Any help would be appreciated.
Thanks in advance!
It is unsafe to expose any api keys in shopify themes that are not explicitly meant for public use.
Hi @Monisha327 
An app is required either develop one or see the app store: helium customer-fields, or ACF metafields, conify customer account Fields, or tools like usemechanic example of custom form submission: https://tasks.mechanic.dev/create-a-draft-order-from-the-cart
There is no system for this, shopify does not execute/run arbitrary form logic(submissions) to in turn update/edit arbitrary internal admin data.
The only tangential exceptions are when a newsletter-contact/classic-customer is created initial tags can be set from a frontend form.
Or through order-attributes(cart-attributes) for a created order after checkout then a tool like shopify-flow could be used in the backend to update resource tags.
1 Like