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",
       "ColumnName3":"TEXT_FIELD_3",
       "IntVal1":INTEGER_FIELD_1,
       "IntVal2":INTEGER_FIELD_2,
       "IntVal3":INTEGER_FIELD_3,
       "DecVal1":DECIMAL_FIELD_1,
       "DecVal2":DECIMAL_FIELD_2,
       "DecVal3":DECIMAL_FIELD_3
    },
    {
       "GenType":"FIELD_TYPE",
       "GenDate":"DATE_FIELD",
       "ColumnName1":"TEXT_FIELD_1",
       "ColumnName2":"TEXT_FIELD_2",
       "ColumnName3":"TEXT_FIELD_3",  
       "IntVal1":INTEGER_FIELD_1,
       "IntVal2":INTEGER_FIELD_2,
       "IntVal3":INTEGER_FIELD_3,
       "DecVal1":DECIMAL_FIELD_1,
       "DecVal2":DECIMAL_FIELD_2,
       "DecVal3":DECIMAL_FIELD_3
    }
]

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

Body:

[
    { 
       "GenType":"Fuel",
       "GenDate":"2019-06-15 10:00",
       "ColumnName1":"Mombasa",
       "ColumnName2":"Diesel",
       "DecVal1":102.26
    },
    { 
       "GenType":"Fuel",
       "GenDate":"2019-06-15 10:00",
       "ColumnName1":"Nakuru",
       "ColumnName2":"Petrol",
       "DecVal1":103.23
    }
]

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