akeneo / pim-community-dev

[Community Development Repository] The open source Product Information Management (PIM)
http://www.akeneo.com
Other
950 stars 513 forks source link

Post /api/rest/v1/products not creating product (returns 200) #20423

Closed CodeWithOsvaldas closed 2 months ago

CodeWithOsvaldas commented 3 months ago

:bug: I'm reporting a Bug :bug:

Akeneo version: 6.0.95 CE

I'm trying to create a product via API, tried both POST and PATCH endpoints, both of them are not creating/updating the product. Requests are returning status 200 and the response body is the exact same as if I would be calling GET request POST curl example: curl --location --request POST 'http:/my-akeneo.com/api/rest/v1/products' \ --header 'Content-Type: application/vnd.akeneo.collection+json' \ --header 'Authorization: Bearer ....' \ --data '{"identifier": "test", "family": "Bendras"}'

Why POST/PATCH is behaving as a GET request?