Revoke role from user
Revoke role from user
DELETE/zones/{zoneId}/users/{userId}/roles/{roleId}
Revokes a role from the user. Provide the same (scope_type, scope_id) pair the grant was created with, or omit both to revoke the unscoped grant.
Path Parameters
zoneId: string
userId: string
roleId: string
Query Parameters
scope_id: optional string
Scope target of the grant to revoke. Provide together with scope_type.
minLength1
scope_type: optional string
Scope kind of the grant to revoke. Provide together with scope_id.
minLength1
Revoke role from user
curl https://api.keycard.ai/zones/$ZONE_ID/users/$USER_ID/roles/$ROLE_ID \
-X DELETE \
-H "Authorization: Bearer $KEYCARD_API_API_KEY"