DELETE /api/v2/account/deleteSessions
Removes one or more sessions from a participant's personal schedule (My Schedule) for a given event.
Authentication
Authorization: Bearer <your_api_key>
Endpoint
DELETE /api/v2/account/deleteSessions
Query Parameters
|
Parameter |
Type |
Required |
Accepted Values / Format |
Description |
|---|---|---|---|---|
|
|
integer |
Yes |
Valid account ID |
The internal ID of the participant whose schedule entries are being removed |
|
|
integer |
Yes |
Valid event ID |
The event the sessions belong to |
|
|
string |
Yes |
Comma-separated session IDs (e.g. |
One or more session IDs to remove from the participant's schedule |
Response
Success (HTTP 200) — at least one session removed
{
"code": 200,
"data": {
"id": 12345,
"status": "Session with ID 10,11 was removed from account 12345 succesfully",
"errors": ["Session with ID 99 was not added to the my schedule"]
},
"response_id": "1700000000.12345"
}
No valid sessions to remove
{
"code": 200,
"data": {
"id": 12345,
"status": "No valid session ID to remove"
}
}
|
Field |
Type |
Description |
|---|---|---|
|
|
integer |
The account ID |
|
|
string |
Human-readable summary of the result |
|
|
array |
Present only when individual session removals failed. Lists per-session error messages |
Per-session errors (non-fatal)
If a session ID was not found or was not in the participant's schedule, that entry is skipped and reported in errors. Valid sessions in the same request are still removed.
Error Responses
|
HTTP Code |
Condition |
Error Message |
|---|---|---|
|
400 |
|
|
|
400 |
|
|
|
400 |
Account not found |
|
|
400 |
Event not found |
|
|
400 |
Account has no scheduled sessions for this event |
|
|
403 |
Missing or invalid API key |
|
Example Request
curl -X DELETE "https://your-event-domain.com/api/v2/account/deleteSessions?id=12345&event_id=7&sessions=42,55" \
-H "Authorization: Bearer your_api_key_here"
Example Response
{
"code": 200,
"data": {
"id": 12345,
"status": "Session with ID 42,55 was removed from account 12345 succesfully"
},
"response_id": "1700000000.12345"
}