Adds a job 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 |
Action | Yes | The action to perform | action=userjobsadd | |
Resource | Yes | Resource code | resource=1/NA | |
Chargecode | Yes | Charge code | chargecode=1/AA | |
Jobphase | Yes | Job and phase | jobphase=1/00008321.001 | |
Workflow | No | Workflow code | workflow=1/W123 | |
Taskdesc | No | The task description | taskdesc="The task desc" | |
Date | No | Date | date=2019-07-23 |
Example request:
http://<SERVER>/jsonapi/tspending.json?user=user&password=user&version=3.9&action=userjobsadd&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
}