Skip to content

assignTeamAdminToTeam ​

Assigns an existing connection as a Team Admin of a given team.

Request ​

http
POST rest/company/support-group/teamadmin

Headers ​

HeaderRequiredDescription
x-nextinteract-authtokenYesAuth token returned from loginUser
x-nextinteract-company-api-keyYesAdmin-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 ​

ExceptionDescription
InvalidParameterExceptionSee Error Definitions
UserNotFoundExceptionSee Error Definitions
AuthorisationServiceExceptionSee Error Definitions
InvalidAuthTokenExceptionSee Error Definitions
CacheServiceExceptionSee Error Definitions
UserServiceExceptionSee Error Definitions
CompanyServiceExceptionSee Error Definitions