Post a row to append in infotable through REST Api
I want to insert a row in infotable named 'AlertTable' .I am posting through Postman. My JSON is:-
{
"AlertTable": {
"fieldDefinitions": {
"AlertDateTime": {
"name": "AlertDateTime",
"description": "",
"baseType": "STRING",
"ordinal": 1,
"aspects": {}
},
"AlertType": {
"name": "AlertType",
"description": "",
"baseType": "STRING",
"ordinal": 2,
"aspects": {}
},
"Description": {
"name": "Description",
"description": "",
"baseType": "STRING",
"ordinal": 4,
"aspects": {}
},
"Location": {
"name": "Location",
"description": "",
"baseType": "STRING",
"ordinal": 4,
"aspects": {}
},
"Speed": {
"name": "Speed",
"description": "",
"baseType": "INTEGER",
"ordinal": 3,
"aspects": {}
},
"VehicleNo": {
"name": "VehicleNo",
"description": "",
"baseType": "STRING",
"ordinal": 3,
"aspects": {}
}
}
},
"rows": [{
"AlertDateTime": "18_08_2017",
"AlertType": "OverSpeeding",
"Description": "AlertFound",
"Location": "Mumbai",
"Speed": "212",
"VehicleNo": "Wb222111_1"
}]
}
But it's giving error as :-
Unable To Convert From org.json.JSONObject to INFOTABLE

