Hi There,
Just wanting to troubleshoot a POST implementation with the Mongoose Rest API.
We’re currently Struggling to get any data actually posting into our system via API. We can retrieve the data without any issues. In the below request I’m posting to a custom table / IDO with only 2 required fields, item and itemcost. I don’t see what the “ItemID” and the “ItemNo” Values are supposed to represent anywhere in the swagger documentation, so I’m not 100% Sure what they’re for or if they are posing the issue.
It is worth noting that I get the same response no matter whether those values are present or not.
Can anyone suggest a fix? I’ve pasted the header data, the body and the response that we’re getting below.
Thanks,
Jamie.
HEADER
/IDORequestService/MGRestService.svc/json/HBPItemCosts/additems
BODY
{
"Action":"Insert",
"ItemId": "test",
"ItemNo": 0,
"Properties":
[
{"IsNull":false,"Modified":true,"Name":"item","Value":"SC3"},
{"IsNull":false,"Modified":true,"Name":"unitcost","Value":"1.34"}
]
}
RESPONSE
{"Message":"Insert succeeded","MessageCode":200,"UpdatedItems":null}