DELETE account/deleteSessions

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

id

integer

Yes

Valid account ID

The internal ID of the participant whose schedule entries are being removed

event_id

integer

Yes

Valid event ID

The event the sessions belong to

sessions

string

Yes

Comma-separated session IDs (e.g. 10,11,12)

One or more session IDs to remove from the participant's schedule


Response

Success (HTTP 200) — at least one session removed

JSON
{
  "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

JSON
{
  "code": 200,
  "data": {
    "id": 12345,
    "status": "No valid session ID to remove"
  }
}

Field

Type

Description

id

integer

The account ID

status

string

Human-readable summary of the result

errors

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

id, sessions, or event_id is missing

Param is required: {param}

400

id or event_id is not a valid integer

Param must be a integer: {param}

400

Account not found

Invalid Account ID

400

Event not found

Could not find an event with id = {event_id}

400

Account has no scheduled sessions for this event

Account has not added any sessions to My Schedule on this event

403

Missing or invalid API key

Forbidden


Example Request

Bash
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

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