Custom HTTP Batch Import - Resource ID path

Hi,

I'm trying to integrate a custom HTTP Batch import to a PIM system named Akeneo. I already constructed the HTTP body, but I'm struggling to set the correct Resource ID path.

By definition the API response Akeneo is returning when handling Batch PATCH request is the following:

[
{
"code": "sku_54628_picture1",
"status_code": 204
},
{
"code": "sku_54628_picture2",
"status_code": 422,
"message": "Property 'group' does not exist."
},
{
"code": "sku_54628_picture3",
"status_code": 201
}
]
https://api.akeneo.com/api-reference.html#patch_assets

Now I don't really know which value the resource ID path has to be set to. I already tried

*.code
[*].code
.*.code
.[*].code

Since I can't find any response which is similar to the one above I was hoping someone can help me out right here.

Can you please try just the "code" as "Resource ID path". To give more details, the field "Resource ID path" gets evaluated per record. Hence it should be just "code".

It seems the response path is wrong aswell. The number of requests doesn't match the number of responses. Any ideas?

Hello Amir, it sounds like there is an issue with the 'Success path' and 'Fail path'. Integrator should be expecting one success or failure per request (one batch request here).

By using trial and error a bit I figured out the following configuration seems to be working: