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
| Parameter | Description | Examples | 
|---|---|---|
| API | The API area | tspending.json | 
| Action | The action to perform | action=timerstartnormal | 
| General | Parameters described in overview | user=user&password=user&version=3.3 | 
| Company | The company context | company=1 | 
| input | JSON string | input="data": ... | 
| input mandatory tspJobAndPhase | Job and phase number | "tspJobAndPhase":"1/00000001.001" | 
| input mandatory tspTimeDate | Time and date | "tspTimeDate": "2018-07-18" | 
| input mandatory tspResourceCode | Resource code | "tspResourceCode": "1/RC" | 
| input mandatory tspResourceName | Resource name | "tspResourceName": "Resource Name" | 
| Response | Returned data | See below | 
Example request:
http://<SERVER>/jsonapi/tspending.json?user=user&password=user&version=3.3&tspending=714&action=timerstartnormalExample response:
{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "responsemessage": "",
  "warningmessage": "",
  "success": true,
  "data": [
    {
      "tspUuid": "81DBA7F4B5704925923BB4D43DC903F2",
      "tspEntryNo": 714,
      "tspending_timerstartdatenormal": "2018-07-19",
      "tspTimerStatusNormal": "RUNNING"
    }
  ]
}