Makes a change to the weekly timesheet.
| Parameter | Mandatory | Description | Examples | More Info |
|---|---|---|---|---|
| API | Yes | The API area | tspending.json | |
| General | Yes | Parameters described in overview | see overview | Structure of an API call |
| Company | Yes | The company number | company=1 | |
| Action | Yes | The action to perform | action=timesheetweeklychange | |
| Date | Yes | Date | date=2019-07-23 | |
| Resource | Yes | Resource code | resource=1/ME | |
| Chargecode | Yes | Charge code | chargecode=1/AA | |
| Jobphase | Yes | Job and phase | jobphase=1/00008321.001 | |
| Search | Yes | Search criteria | search=jobphase#workflow#taskdesc#chargecode | |
| Workflow | No | Workflow code | &workflow=1/W123 | |
| Taskdesc | No | Task description | &taskdesc="The task desc" |
Example request:
http://<SERVER>/jsonapi/tspending.json?user=user&password=user&version=4&action=timesheetweeklychange&resource=1/NA&jobphase=1/00008321.001&chargecode=1/AA
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"responsemessage": "user job added",
"warningmessage": "",
"success": true
}