Add multiple customer inventory in one REST request
Content
Hi All,
I am trying to create multiple customer inventories in one REST request. I know the API can be used to create one inventory at a time, but to create large no of inventory with customer, I want to create multiple inventory in one request.
I am using the API : Create Resource Inventory :/rest/ofscCore/v1/resources/{resourceId}/inventories
in the Body I am passing :
[{
"inventoryType": "PUMP",
"resourceId": "123"
},
{
"inventoryType": "CABLE",
"resourceId": "123"
}
]
but it is giving me error: "Invalid request - Got value type: 'array'. Expected value type: 'object'"
Has anyone faced this issue earlier and have a solution for this. Please comment.