Update Depot Data

The below API is used to update an Depot header and data fields in Depot List

Request: POST

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

Body:

{
"DepotCode":"DEPOT_CODE", 

"Field":

[

{

  "Code":"DEPOT_HEADER_CODE", 
  "Value":"DEPOT_HEADER_VALUE"
 }

],

"Data":
[
   
 {
  "Code":"DEPOT_CODE_DATE",
  "Value":"DEPOT_VALUE",
  "Remarks":"DEPOT_REMARKS"
 }
]
}

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

Body:

{ 
"DepotCode":"NBO000", 
"Field":
[
 { 
   "Code":"CODE", 
   "Value":"NBO001"
 },
 { 
   "Code":"NAME", 
   "Value":"Nairobi - Direct Trucking"

},

 { 
   "Code":"LATITUDE", 
   "Value": -1.2833

},

 { 
   "Code":"LONGITUDE", 
   "Value": 36.8167
 }
],
"Data":
[
 {
    "Code":"WR",
    "Value":"Kenya",
    "Remarks":"This is the latest WR"
 },
 {
    "Code":"MNG",
    "Value":"Mr. Paul",
    "Remarks":"Assistant Manager"
 },
 {
    "Code":"EMP",
    "Value":34,
    "Remarks":""
 }
]
}

Response:

{
"Code": 1,
"Info": "Depot data updated successfully",
"RowsAffected": 1,
"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
    2. These fields are mandatory while sending request body:
        • Depot Code
        • Code
        • Value
    3. Below are the Depot Header Fields and their Code:
    1. Data value for Item list must be separated with semi colon (;)