Timer

Timer

The action parameter is constructed as follows:

  • timer

add one of:

  • start
  • pause
  • resume
  • stop
  • cancel
  • discard
  • remove
  • elapsed

add one of:

  • normal
  • ot1
  • ot2

Examples:

  • timerstartnormal
  • timerpauseot1
  • timerelapsedot2
ParameterDescriptionExamples
APIThe API areatspending.json
ActionThe action to performaction=timerstartnormal
GeneralParameters described in overviewuser=user&password=user&version=3.3
CompanyThe company contextcompany=1
inputJSON stringinput="data": ...
input mandatory tspJobAndPhaseJob and phase number"tspJobAndPhase":"1/00000001.001"
input mandatory tspTimeDateTime and date"tspTimeDate": "2018-07-18"
input mandatory tspResourceCodeResource code"tspResourceCode": "1/RC"
input mandatory tspResourceNameResource name"tspResourceName": "Resource Name"
ResponseReturned dataSee below

Example request:

http://<SERVER>/jsonapi/tspending.json?user=user&password=user&version=3.3&tspending=714&action=timerstartnormal

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "responsemessage": "",
  "warningmessage": "",
  "success": true,
  "data": [
    {
      "tspUuid": "81DBA7F4B5704925923BB4D43DC903F2",
      "tspEntryNo": 714,
      "tspending_timerstartdatenormal": "2018-07-19",
      "tspTimerStatusNormal": "RUNNING"
    }
  ]
}