Update

Update

Parameter

Description

Examples

API

The API area

tspending.json

Action

The action to perform

action=update

Parameters described in overview

user=user&password=user&version=3.3

Company

The company context

company=1

input

JSON string

input="data":...

Identifier

data to identify the timesheet to update

"tspEntryNo":714

Data

data to update

"tspWorkDone":"work done"

Response

Returned data

See below

Example request:

http://<SERVER>/jsonapi/tspending.json?user=user&password=user&version=3.3&company=1&action=update&input={"data":[{"tspEntryNo":3636,"tspWorkDone":"test"}]}

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "responsemessage": "data processed successfully.",
  "warningmessage": "",
  "success": true,
  "data": [
    {
      "tspTimerStatusNormal": "",
      "tspTimerStatusOt1": "",
      "tspTimerStatusOt2": "",
      "tspEntryNo": 3636,
      "tspUuid": "DEBE83A88C58144FA43FC2E3F9839C75",
      "tspTimeStampModified": 0,
      "tspRecordVersionNumber": 0
    }
  ]
}