Update

Updates an existing expense sheet.

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areaexpensesheets.json
GeneralYesParameters described in overviewuser=user&password=user&version=3.9Overview
CompanyYesCompany numbercompany=1
ActionYesThe action to performaction=update
InputYesJSON stringSee below
JSON InputMandatoryDescriptionExamples
IdentifierYesData identifying expense sheet to update"expensesheetInternalRef":687
Update dataYesData to update on expense sheet"expensesheetDescription":"My expense sheet 2"

Example request:

http://<SERVER>/jsonapi/expensesheets.json?user=user&password=user&version=3.9&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
    }
  ]
}