POST sessions/addVisitor

POST /api/v2/sessions/addVisitor

Registers a participant as a visitor (attendee) of a session by adding a schedule entry for them.


Authentication

Authorization: Bearer <your_api_key>

Endpoint

POST /api/v2/sessions/addVisitor

Body Parameters

Submitted as multipart/form-data.

Parameter

Type

Required

Description

event_id

integer

Yes

The ID of the event the session belongs to

id

integer

Yes

The ID of the session to register the participant in

account_id

integer

Yes

The ID of the participant to add as a visitor


Response Format

Success Response (HTTP 200)

JSON
{
  "code": 200,
  "response_id": "...",
  "data": {
    "status": "created"
  }
}

Field

Type

Description

status

string

Always "created" when the visitor was successfully added


Error Responses

HTTP Code

Condition

Error Message

400

event_id, id, or account_id is missing

Missing required parameter: <field>

400

event_id, id, or account_id is not a valid integer

Param must be a integer: <field>

400

Event not found

Could not find an event with id = <event_id>

400

Session not found

Could not find a session with id = <id>

400

Participant not found

Could not find account with id = <account_id>

400

Participant is not registered for the event

Account not exist on event

400

Participant is an exhibitor owner and cannot be added as a visitor

Could not assign exhibitor to session

400

Participant is already signed up for this session

Already signed to this session

400

Session time conflicts with another entry in the participant's schedule

<name> can't be part of this Session as the same time is blocked in their Schedule with something else.

403

Missing or invalid API key

Forbidden


Example Request

Bash
curl -X POST "https://your-event-domain.com/api/v2/sessions/addVisitor" \
  -H "Authorization: Bearer your_api_key_here" \
  -F "event_id=7" \
  -F "id=42" \
  -F "account_id=18626"