βRemoving Participants
This step shows how to remove participants from a session via GroupsAPI
curl --location --request DELETE 'https://<DOMAIN>/xapi/session/<SESSION_ID>/attendee/<ATTENDANCE_CODE>' \
--header 'Authorization: Bearer <ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data ''curl --location --request DELETE 'https://<DOMAIN>/xapi/session/<SESSION_ID>/attendee/<USER_ID>' \
--header 'Authorization: Bearer <ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data ''curl --location --request DELETE 'https://<DOMAIN>/xapi/session/<SESSION_ID>/attendee/<EMAIL>' \
--header 'Authorization: Bearer <ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data ''from perculus_sdk.client import APIClient
# API client
client = APIClient()
...
# Delete the attandee by ATTENDANCE_CODE
client.attendees.delete_by_attendance_code_or_user_id(
session_id="<SESSION_ID>",
attendance_code_or_user_id="<ATTENDANCE_CODE>"
)
# Delete the attandee by USER_ID
client.attendees.delete_by_attendance_code_or_user_id(
session_id="<SESSION_ID>",
attendance_code_or_user_id="<USER_ID>"
)
# Delete the attandee by EMAIL
client.attendees.delete_by_email(
session_id="<SESSION_ID>",
email="<EMAIL>"
)Last updated