How to remove sessions from a participant's schedule

How to remove sessions from a participant's schedule

Use this guide when you need to remove one or more sessions from a participant's personal schedule (My Schedule).


What you'll need before starting

What you need

Where to get it

Participant account ID

GET /api/v2/account/get or GET /api/v2/participants/{eventId}/list

Session ID(s)

Returned as id in the response of POST /api/v2/sessions/set, or retrieved via GET /api/v2/sessions/getSession


Request — remove a single session

Bash
curl -X DELETE "https://your-event-domain.com/api/v2/account/deleteSessions?id=12345&event_id=7&sessions=42" \
  -H "Authorization: Bearer your_api_key_here"

Request — remove multiple sessions at once

Bash
curl -X DELETE "https://your-event-domain.com/api/v2/account/deleteSessions?id=12345&event_id=7&sessions=42,55,63" \
  -H "Authorization: Bearer your_api_key_here"

Response

JSON
{
  "code": 200,
  "data": {
    "id": 12345,
    "status": "Session with ID 42,55,63 was removed from account 12345 succesfully"
  },
  "response_id": "1700000000.12345"
}

Notes

  • Multiple session IDs must be passed as a comma-separated string: sessions=42,55,63

  • If a session is not in the participant's schedule, it is skipped with a non-fatal error — other sessions in the same request are still removed

  • If the participant has no scheduled sessions for this event, a 400 error is returned

  • To add sessions to a schedule, use POST /api/v2/account/setSessions