Resource List

Returns a list of staff resource records

Resource List

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areatspending.json
GeneralYesParameters described in overviewsee overviewStructure of an API call
CompanyYesThe company numbercompany=1
ResourceNoResource active/inactiveresource=ALLACTIVE
UserIDNolist all resourcesuserid=ALLACTIVE
ActionYesThe action to performaction=resourcelist

Example request (OAuth 2.0):

Authorization: Bearer <access_token>
http://&lt;SERVER&gt;/jsonapi/tspending.json?&version=6&action=resourcelist&company=1&userid=ALLACTIVE

Example request (legacy username/password):

http://&lt;SERVER&gt;/jsonapi/tspending.json?&version=6&action=resourcelist&company=1&userid=ALLACTIVE&user=<username>&password=<password>

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"
    }
  ]
}