REST API Batch Action Issue
Summary
Does the part sequence matter?Content
Hi,
In the batch action, I noticed that if I call create before update, the batch API is failed. Do you know why?
Here is the batch payload (working version - update is before create)
{
"parts": [
{
"id": "part1",
"path": "/accounts/1821593/child/Address/1659286",
"operation": "update",
"payload": {
"Address1": "100",
"Country": "US"
}
},
{
"id": "part2",
"path": "/accounts/1821593/child/Address",
"operation": "create",
"payload": {
"CreatedByModule": "FUSE",
"Address1": "1a",
"Country": "US"
}
}
]
}
Here is the batch payload with same data (failed version - create is before update). In this call, I got error 'part2 fallo: Attribute Country in AccountRestAM.Account is required.'
Tagged:
1