Hello everyone,
has anyone successfully created a manufacturing order using the REST API? I am struggling with « Validation » errors. I think my json payload is incorrect.
I tried
PUT [axelor]/ws/rest/com.axelor.apps.production.db.ManufOrder
Header:
Accept application/json; Content-Type application/json
Body:
{
"data": {
"billOfMaterial": {
"fullName": "myBOMname",
"id": 1
},
"prodProcess": {
"fullName": "myProdProcess"
},
"company": {
"code": "myCompany"
},
"product": {
"code": "myProdCode",
"fullName": "myProdName"
}
}
}
And the error I keep getting is:
{
"status": -1,
"data": {
"title": "Validation error",
"message": " • [name] - may not be null\n"
}
}
Could someone post an example PUT request for a manufacturing order to the ManufOrder Model?
Thanks in advance!