Returns the list of jobs for a user's 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 | |
Resource | Yes | Resource code | resource=1/jon | |
Action | Yes | The action to perform | action=userjobslist |
Example request:
http://<SERVER>/jsonapi/tspending.json?user=user&password=user&version=3.9&action=userjobslist&company=16&resource=16/MP
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"totalrows": 6,
"totalpages": 1,
"responsemessage": "",
"pagerows": 0,
"pagenumber": 1,
"success": true,
"synapiversion": 3.8,
"data": [
{
"userjobsUuid": "9BBE4623E29EC94B82FAC929A7E8900F",
"userjobsTimeStampModified": 1595364728,
"userjobsRecordVersionNumber": 1,
"userjobsChargeCode": "16/HK",
"userjobsJobAndPhase": "16/1600033.003",
"userjobsStageCode": ""
},
{
"userjobsUuid": "28BB0DF016F73E4986E899EF490C7541",
"userjobsTimeStampModified": 1583504287,
"userjobsRecordVersionNumber": 0,
"userjobsChargeCode": "16/HOL",
"userjobsJobAndPhase": "16/HO50026.002",
"userjobsStageCode": ""
},