Returns a list of staff resource records
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 | No | Resource active/inactive | resource=ALLACTIVE | |
UserID | No | list all resources | userid=ALLACTIVE | |
Action | Yes | The action to perform | action=userjobslist |
Example request:
http://<SERVER>/jsonapi/tspending.json?user=user&password=user&version=3.9&action=resourcelist&company=1&userid=ALLACTIVE
Example response:
{
"responsecode": 1,
"responsestatus": "OK",
"errorcode": 0,
"errormessage": "",
"totalrows": 1,
"totalpages": 1,
"responsemessage": "",
"pagerows": 0,
"pagenumber": 1,
"success": true,
"data": [
{
"resourcesUuid": "8309E68AE196447080FEA8302241A4F7",
"resourcesTimestampModified": 1561708297,
"resourcesRecordVersionNumber": 186,
"resourcesCode": "1/U",
"resourcesName": "User - Andy"
}
]
}