Appearance
findPublicTeams ​
Returns Teams that have been defined as "Public" within SAM. NOTE: this currently only applies to MI (not NI yet) and is used for MI Rep Registrations.
Request ​
http
GET /rest/user/public/teamsHeaders ​
| Header | Required | Description |
|---|---|---|
x-nextinteract-authtoken | Yes | Auth token returned from loginUser |
Parameters ​
| Parameter | Type | Required | Description |
|---|---|---|---|
cId | Yes | Company Id (NOTE: the requesting user must be associated with this company via NI or MI) | |
regoTeamsOnly | boolean | No | Boolean value (true|false) indicating that Teams should be filtered on whether they relate to a Rego Asset or not. NOTE: default value is "true" meaning rego teams are always returned unless otherwise specified (changed in March 2016). |
teamsUsingPushNotifications | string | No | String value (true | false | all) indicating that only Teams that have been flagged in SAM by field "Uses Push Notifications?" should be returned. Default value is False (No). Value of "all" means regoTeams will not be filtered and all Teams with Push Notification = 'Y' will be returned. |
Response ​
200 OK ​
JSON Reponse:
json
[
{
"teamId": 22,
"teamName": "Equity Investments"
},
{
"teamId": 21,
"teamName": "Property Investments"
}
]Errors ​
| Exception | Description |
|---|---|
WSCompanyServiceUnavailableException | See Error Definitions |
WSInvalidParameterException | See Error Definitions |
WSInvalidAuthTokenException | See Error Definitions |
WSInsufficientPermissionsException | See Error Definitions |
WSCompanyServiceException | See Error Definitions |
WSCacheServiceException | See Error Definitions |