woocommerce / wc-api-ruby

A Ruby wrapper for the WooCommerce API.
MIT License
69 stars 74 forks source link

update customer role #22

Closed TeamOussama closed 8 years ago

TeamOussama commented 8 years ago

i try this api with status update and get orders and customers and its work well. but when i come to update customer role its not updating !! i use next code:

data={ "customer" => { "role" => "Editor" } } puts woocommerce.put("customers/3", data)

claudiosanches commented 8 years ago

role is read-only, not possible to update.

TeamOussama commented 8 years ago

where i can find this information please in documentation !! and can i update group of customers ?

thank you claudiosmweb!!

claudiosanches commented 8 years ago

@TeamOussama here is not a support forum.