POST account/setSessions

POST /api/v2/account/setSessions

Adds one or more sessions to a participant's personal schedule (My Schedule) for a given event.


Authentication

Authorization: Bearer <your_api_key>

Endpoint

POST /api/v2/account/setSessions

Body Parameters

Content-Type: multipart/form-data

Parameter

Type

Required

Accepted Values / Format

Description

id

integer

Yes

Valid account ID

The internal ID of the participant whose schedule is being updated

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 add to the participant's schedule


Response

Success (HTTP 200)

JSON
{
  "code": 200,
  "data": {
    "id": 12345,
    "status": "Session with ID 10,11 was added to account 12345 succesfully"
  },
  "response_id": "1700000000.12345"
}

Field

Type

Description

id

integer

The account ID

status

string

Human-readable summary of the result

errors

array

Present only when individual session additions failed. Lists per-session error messages

No valid sessions to add

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

Per-session errors (non-fatal)

If a session ID in the list is invalid or already in the participant's schedule, that specific session will be skipped and reported in the errors array. Other valid sessions in the same request are still added.


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}

403

Missing or invalid API key

Forbidden


Example Request

Bash
curl -X POST "https://your-event-domain.com/api/v2/account/setSessions" \
  -H "Authorization: Bearer your_api_key_here" \
  -F "id=12345" \
  -F "event_id=7" \
  -F "sessions=10,11,12"

Example Response

JSON
{
  "code": 200,
  "data": {
    "id": 12345,
    "status": "Session with ID 10,11,12 was added to account 12345 succesfully"
  },
  "response_id": "1700000000.12345"
}