Closed Taral-Patoliya closed 8 years ago
@Taral-Patoliya thank you for reporting, we have created MAGETWO-52424 to investigate and fix.
Hi @Taral-Patoliya have you tried using any different api call? Did you get a resource permission issue for those as well?
Hello @hshar7 I have tried other api calls using GET method to retrive categories, products/:sku but they all worked fine, even when i created the token using integrations and used it was successful, the problem arises when i try to create a token from integration/admin/token endpoint and use it to create the product
You are 2.0 or develop?
@hshar7 I am using 2.0.2
Okay thanks! Investigating.
@hshar7 , @mazhalai thanks for the support. i appreciate it.
@Taral-Patoliya It seems to be working for me on both 2.0.2 and develop. You should look at your ACL for the user node_rest
@hshar7 i granted all the resources to the user. let me check once again. thanks for testing.
Any updates? Can I close?
I am trying to create a simple product using REST Api. The client is a node.js script,
I have created an admin user with access to all the resources, and used the credentials to request a token which i am getting successfully in a response. but when i try to use that token and post the product data, i get following response
I know that the data in the request is disoriented and not structured but i don't think that it should have anything to do with authorization, the data format deserves its own error :D
Sorry for the bad formatting of the request data but the Editor's functionality could not reformat the data