Skip to content

unassignFromTeams ​

Unassigns a single User from one (or more) MI Team(s) of a Company given a valid Membership-specific API Key

Request ​

http
POST /rest/company/membership/teams/unassign

Headers ​

HeaderRequiredDescription
x-nextinteract-company-api-keyYesAdmin-specific API key UUID provided to company

Parameters ​

ParameterTypeRequiredDescription
userIdNumberYesUserId to unassign from given Team(s)
teamsArray of NumbersYesArray of one or more TeamIds to unassign (returned via getPublicMITeams API)
json
{
        "userId" : 8,
        "teams" : [6]
}

Response ​

200 OK ​

A successful response should evaluate the Status Code 200. However, an empty JSON is returned as per below.

json
{

}

Errors ​

ExceptionDescription
WSInvalidParameterExceptionSee Error Definitions
WSRecordNotFoundExceptionSee Error Definitions
WSCompanyApiKeyNotActiveExceptionSee Error Definitions
WSCompanyNotActiveExceptionSee Error Definitions
WSUserNotFoundExceptionSee Error Definitions
WSUserNotActiveExceptionSee Error Definitions
WSConnectionStatusNotActiveExceptionSee Error Definitions
WSMembershipServiceExceptionSee Error Definitions