Update

Update an existing expense sheet

Update

ParameterDescriptionExamples
APIThe API areaexpensesheets.json
ActionThe action to performaction=update
<General>Parameters described in overviewuser=user&password=user&version=3.2
CompanyThe company contextcompany=1
inputJSON stringinput="data": ...
IdentifierData identifying expense sheet to update"expensesheetInternalRef":687
Update dataData to update on expense sheet"expensesheetDescription":"My expense sheet 2"
ResponseReturned dataSee below

Example request:

http://<SERVER>/jsonapi/expensesheets.json?user=user&password=user&version=3.2&company=1&action=update&input={"data":[{"expensesheetInternalRef":687,"expensesheetDescription":"My expense sheet  2"}]}

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "responsemessage": "data processed successfully.",
  "warningmessage": "",
  "success": true,
  "data": [
    {
      "expensesheetInternalRef": 687,
      "expensesheetUuid": "0356E3479C70BD47B8A26B06E04DD450",
      "expensesheetTimestampModified": 1533201346,
      "expensesheetRecordVersionNumber": 14
    }
  ]
}