How to update customers metafields

Hi @dev-karlmax !

You’re getting that error because you aren’t passing in the existing metafield’s ID to the customerUpdate mutation. You can grab the ID after creation and then pass it along to subsequent updates.

Alternatively you could use the metafieldsSet mutation which doesn’t require passing the ID on updates.

1 Like