Skip to content
Whitelisting

Batch-revoke whitelistings

Remove multiple whitelist entries and terminate any active sessions.

POST /v1/org/{organizationId}/contexts/sign-in/{contextId}/modules/whitelistings/batch/remove

Removes many whitelist entries by MAC. Active sessions from the revoked devices are terminated.

ParameterInTypeRequiredDescription
organizationIdPathstringYesOrganization ID.
contextIdPathstringYesSign-In Context ID.
x-auth-tokenHeaderstringYesContext API key.
macsBodyobject[]YesArray of MAC-carrying objects.
macs[].macstringYesMAC, AA:BB:CC:DD:EE:FF or AA-BB-CC-DD-EE-FF.

Request example

cURL
curl -X POST "$API_BASE_URL/v1/org/$ORG_ID/contexts/sign-in/$CTX_ID/modules/whitelistings/batch/remove" \
-H "x-auth-token: $NETGRAPH_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"macs": [
{ "mac": "AA:BB:CC:00:00:01" },
{ "mac": "AA:BB:CC:00:00:02" }
]
}'
FieldTypeDescription
nrOfWhitelistingsInRevokeRequestintegerHow many MACs were in the request.
nrOfWhitelistingsThatHadActiveLoginsThatWereRevokedintegerHow many of those MACs had active sessions that were terminated as part of this call.

Response example

200
{
"nrOfWhitelistingsInRevokeRequest": 2,
"nrOfWhitelistingsThatHadActiveLoginsThatWereRevoked": 1
}

Next