Update

Update

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areaexpenselines.json
GeneralYesParameters described in overviewAuthorization: Bearer <access_token> header — see Synergist API AuthenticationStructure of an API call
ActionYesThe action to performaction=update
InputYesJSON stringSee below
JSON InputMandatoryDescriptionExamples
IdentifierYesExpense sheet ID or UUID"expenselineInternal":2288
Update dataYesData to update on expense sheet"expenselineTotal":100

Example request (OAuth 2.0):

Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/expenselines.json?&version=6&action=update&input={
  "data": [
    {
      "expenselineInternal": 2288,
      "expenselineTotal": 100
    }
  ]
}

Example request (legacy username/password):

http://<SERVER>/jsonapi/expenselines.json?&version=6&action=update&input={
  "data": [
    {
      "expenselineInternal": 2288,
      "expenselineTotal": 100
    }
  ]
}&user=<username>&password=<password>

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "responsemessage": "data processed successfully.",
  "warningmessage": "",
  "success": true
}