When creating a customer or updating a customer, the role parameter is read only by default. so what I'm needing here is to be able to nominate the role for the customer when they are created or updated via the REST API. The default REST calls
in this case the path is wp-json/wc/v2/customers and want to assign different role to customer.
Any idea how to do it.
What I'm getting here is the documentation :
Nothing else .
How to use it in hooks in functions file. If I'm on right track