Appearance
assignTeamAdminToTeam ​
Assigns an existing connection as a Team Admin of a given team.
Request ​
http
POST rest/company/support-group/teamadminHeaders ​
| Header | Required | Description |
|---|---|---|
x-nextinteract-authtoken | Yes | Auth token returned from loginUser |
x-nextinteract-company-api-key | Yes | Admin-specific API key UUID provided to company |
Parameters ​
companyId - (integer, required) company id of the company for which SGL is being created. teamId - (Integer, required) team if of team user should be assigned to as Team Admin emailAddress - (String, required) email address of an existing connection to be assigned to the team as Team Admin.
SAMPLE PAYLOAD
json
{
"companyId": 3,
"teamId": 277,
"emailAddress" : "dev.sam1@yopmail.com"
}'
Response ​
200 OK ​
NO JSON response. HTTP 200 denotes operation success
Response Fields ​
}
Errors ​
| Exception | Description |
|---|---|
InvalidParameterException | See Error Definitions |
UserNotFoundException | See Error Definitions |
AuthorisationServiceException | See Error Definitions |
InvalidAuthTokenException | See Error Definitions |
CacheServiceException | See Error Definitions |
UserServiceException | See Error Definitions |
CompanyServiceException | See Error Definitions |