TrakIT API‎ > ‎Pending API‎ > ‎

Update General Info

The below API is used to Update General Info.


Request: POST

Signature: /api/mobile/UpdateGenInfo?Token={Login_Token}

Body: 

 { 
   "GenType":"FIELD_TYPE",
   "GenDate":"DATE_FIELD",
   "ColumnName1":"TEXT_FIELD_1",
   "ColumnName2":"TEXT_FIELD_2",
   "IntVal1":INTEGAR_FIELD_1,
   "IntVal2":INTEGAR_FIELD_2,
   "DecVal1":DECIMAL_FIELD_1,
   "DecVal2":DECIMAL_FIELD_2
}


Sample : /api/mobile/UpdateGenInfo?Token=VomYEMiECFFyAQ3==


Body: 

   "GenType":"Fuel",
   "GenDate":"2019-06-15 10:00",
   "ColumnName1":"Mombasa",
   "ColumnName2":"Diesel",
   "DecVal1":102.26
}


Response:

{
    "Code": 1,
    "Info": "General Information added successfully",
    "RowsAffected": 0,
    "Scalar": null,
    "Identity": 0,
    "RetInfo": null
}


Things to know about this API:
  1. Token - You can use Login API to get token displayed under Info
Comments