Appearance
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/unassignHeaders ​
| Header | Required | Description |
|---|---|---|
x-nextinteract-company-api-key | Yes | Admin-specific API key UUID provided to company |
Parameters ​
| Parameter | Type | Required | Description |
|---|---|---|---|
userId | Number | Yes | UserId to unassign from given Team(s) |
teams | Array of Numbers | Yes | Array 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 ​
| Exception | Description |
|---|---|
WSInvalidParameterException | See Error Definitions |
WSRecordNotFoundException | See Error Definitions |
WSCompanyApiKeyNotActiveException | See Error Definitions |
WSCompanyNotActiveException | See Error Definitions |
WSUserNotFoundException | See Error Definitions |
WSUserNotActiveException | See Error Definitions |
WSConnectionStatusNotActiveException | See Error Definitions |
WSMembershipServiceException | See Error Definitions |