Team Lookup

An activity can have a 'team' allocated to it. This API provides a list of valid teams

Team Lookup

ParameterMandatoryDescriptionExamplesMore Info
APIYesThe API areaactivities.json
GeneralYesParameters described in API syntax sectionStructure of an API call
CompanyYesThe company numbercompany=1
ActionYesThe action to performaction=teams

Example request (OAuth 2.0):

Authorization: Bearer <access_token>
http://<SERVER>/jsonapi/activities.json?&company=1&action=teams&version=6

Example request (legacy username/password):

http://<SERVER>/jsonapi/activities.json?&company=1&action=teams&version=6&user=<username>&password=<password>

Example response:

{
  "responsecode": 1,
  "responsestatus": "OK",
  "errorcode": 0,
  "errormessage": "",
  "totalrows": 12,
  "totalpages": 1,
  "responsemessage": "",
  "pagerows": 0,
  "pagenumber": 1,
  "success": true,
  "data": [
    {
      "teamCode": "1/ACC",
      "teamDescription": "Accounts",
      "variable_selected": false
    },
    {
      "teamCode": "1/ADMI",
      "teamDescription": "Administration",
      "variable_selected": false
    }
  ]
}