admin管理员组文章数量:1323714
I am using JWT to make call threw the woocommerce api.
I created a kind of bot which is an admin user which I connect through JWT api to get a token.
With the token at the moment I am doing calls to create customers, orders. Getting products and everything is working fine. I am trying to implement a new call to update a customer and I have woocommerce_rest_cannot_edit
. The user I am making the call with is admin and have an aop rest key related to him granting access on read and write. Not sure this api key is useful.
If I am trying to make a call with this api key I have an error from JWT jwt_auth_bad_auth_header
I am using JWT to make call threw the woocommerce api.
I created a kind of bot which is an admin user which I connect through JWT api to get a token.
With the token at the moment I am doing calls to create customers, orders. Getting products and everything is working fine. I am trying to implement a new call to update a customer and I have woocommerce_rest_cannot_edit
. The user I am making the call with is admin and have an aop rest key related to him granting access on read and write. Not sure this api key is useful.
If I am trying to make a call with this api key I have an error from JWT jwt_auth_bad_auth_header
1 Answer
Reset to default 1The user you are using to update an user has to be network admin
This was my issue
本文标签: apiUpdate Customer JWT Woocommerce
版权声明:本文标题:api - Update Customer JWT Woocommerce 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742128254a2422040.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论