How to add new product via JSON Admin?
Posted: 07 Nov 2019, 17:33
Hi,
I am trying to use the Aimeos JSON API (TYPO3 9.5.8 / Aimeos 19.10.1).
GET works well, but I have problems using POST and controller "Jsonadm" for example to add a new product.
I tried to follow the instructions on: https://aimeos.org/docs/Developers/Admi ... _resources
The request body is a JSON encoded array with "data" on root level and type "product" where I am trying to set some attributes.
As a response I get a 401 "Not allowed for this resource". Any idea what is causing this issue? Are there maybe some mandatory attributes to set per product I am missing here?
Any help is appreciated!
Thanks a lot,
Michael
I am trying to use the Aimeos JSON API (TYPO3 9.5.8 / Aimeos 19.10.1).
GET works well, but I have problems using POST and controller "Jsonadm" for example to add a new product.
I tried to follow the instructions on: https://aimeos.org/docs/Developers/Admi ... _resources
The request body is a JSON encoded array with "data" on root level and type "product" where I am trying to set some attributes.
As a response I get a 401 "Not allowed for this resource". Any idea what is causing this issue? Are there maybe some mandatory attributes to set per product I am missing here?
Any help is appreciated!
Thanks a lot,
Michael