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 |
|---|---|---|---|
|
|
integer |
Yes |
The ID of the event the session belongs to |
|
|
integer |
Yes |
The ID of the session to register the participant in |
|
|
integer |
Yes |
The ID of the participant to add as a visitor |
Response Format
Success Response (HTTP 200)
{
"code": 200,
"response_id": "...",
"data": {
"status": "created"
}
}
|
Field |
Type |
Description |
|---|---|---|
|
|
string |
Always |
Error Responses
|
HTTP Code |
Condition |
Error Message |
|---|---|---|
|
400 |
|
|
|
400 |
|
|
|
400 |
Event not found |
|
|
400 |
Session not found |
|
|
400 |
Participant not found |
|
|
400 |
Participant is not registered for the event |
|
|
400 |
Participant is an exhibitor owner and cannot be added as a visitor |
|
|
400 |
Participant is already signed up for this session |
|
|
400 |
Session time conflicts with another entry in the participant's schedule |
|
|
403 |
Missing or invalid API key |
|
Example Request
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"