Skip to content

Batch-revoke whitelistings (legacy)

Remove multiple whitelist entries and terminate any active sessions.

Legacy API

This page describes the legacy Sign In API. New integrations use the Sign In API with an Organization API key. The same operation there: End whitelistings in a batch.

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_HOST/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
}