Hi All,
I imagine I’m being an idiot but how would I go about “bulk” updating part UOMs through the REST API?
So far, I’ve been posting through /{currentCompany}/Erp.BO.PartSvc/PartUOMs but, as far as I can tell, this service only accepts one UOM code for one part at a time.
The request body looks like:
{
"company": "COMPANY",
"partnum": "PART123",
"uom_code": "EA",
"conv_factor": 1.0
}
Is there a way I can send over a bulk request? The request body I’m envisioning would look something like below.
{
{
"company": "COMPANY",
"partnum": "PART123",
"uoms": [
{ "uom_code": "Bag", "conv_factor": 1.0 },
{ "uom_code": "M", "conv_factor": 12.0 },
{ "uom_code": "Mm", "conv_factor": 144.0 }
]
}
}
To expand on the above, is it also possible to have it in an array, to allow me to do this across multiple parts at once?
I.e.
{
"company": "COMPANY",
"parts": [
{
"partnum": "PART123",
"uoms": [
{
"uom_code": "EA",
"conv_factor": 1.0
},
{
"uom_code": "BOX",
"conv_factor": 12.0
},
{
"uom_code": "PALLET",
"conv_factor": 144.0
}
]
},
{
"partnum": "PART456",
"uoms": [
{
"uom_code": "EA",
"conv_factor": 1.0
},
{
"uom_code": "CASE",
"conv_factor": 24.0
}
]
}
]
}

