Cannot update product from APIv3: PUT request
-
Hi all,
trying to update a product custom field(created with ACF plugin), filed is called “precio1”
Using Postman, I see it when I make a GET(as meta_data)
I am trying to update it from POSTMAN and Terminal, using this request
curl -X PUT https://MYHOSTNAME/wp-json/wc/v3/products/296 -u ck_XXXXXXXXX:cs_XXXX (ck and cs are OK the user is the WP admin so really ellevated) -H "Content-Type: application/json" -d '{ "product": { "meta_data": { "key": "precio1", "value": "1234" } } }'
When I send this request I get:
{"code":"woocommerce_rest_cannot_edit","message":"Lo siento, no tienes permiso para editar este recurso.","data":{"status":401}}zsh: command not found: -u zsh: command not found: -H zsh: command not found: -d
I already consulted the full desciption of the v3 API, specially about Authentication and dozens of forums during the last 2 days, I need some help……. What I am doing wrong? Thank you in advance
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Cannot update product from APIv3: PUT request’ is closed to new replies.