How to add new product via JSON Admin?
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
How to add new product via JSON Admin?
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
Re: How to add new product via JSON Admin?
The reason is that you are not authenticated. Before using the JsonAdm API, you have to login your client in your TYPO3 instance somehow.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star