An activity can have a 'team' allocated to it. This API provides a list of valid teams
Team Lookup
| Parameter | Mandatory | Description | Examples | More Info |
|---|---|---|---|---|
| API | Yes | The API area | activities.json | |
| General | Yes | Parameters described in API syntax section | Structure of an API call | |
| Company | Yes | The company number | company=1 | |
| Action | Yes | The action to perform | action=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
}
]
}