• Resolved WiglWagl

    (@renemauritz)


    Hello,

    i try to delete a prodcut using curl and get a permssion error:

    {“code”:”woocommerce_rest_cannot_delete”,”message”:”Sorry, you do not have permission to delete this resource.”,”data”:{“status”:401}}

    curl -X DELETE https://test.at/wp-json/wc/v3/products/4592?force=true \ -u xxx:yyy-H “Content-Type: application/json” >rmtmp/X.GETART.SHOP.47110815.TXT

    But why? Api Permission are “read/write” There is no point like “delete”.

    Thanks

    Rene

    • This topic was modified 1 year, 3 months ago by WiglWagl.
    • This topic was modified 1 year, 3 months ago by WiglWagl.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @renemauritz ,

    Thank you for sharing the details of your query. I noticed that this thread has been marked as resolved. Were you able to find a solution to the issue?

    If so, it would be great if you could share the solution here. This can help other users who might encounter a similar problem in the future. Let us know if there’s anything else you’d like assistance with!

    Thread Starter WiglWagl

    (@renemauritz)

    oh sorry, in this case the problem was the “\” behind “force=true”..

    Thank you

    Zee

    (@doublezed2)

    Hello WiglWagl,

    Thank you for sharing the solution here.

    Please don’t hesitate to contact us again if you any help in the future.

    Have a great day!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘restapi, delete product, permission’ is closed to new replies.