How to create a new session
Use this guide to create a new session with the minimum required fields.
What you'll need before starting
|
What you need |
Where to get it |
|---|---|
|
Language ID |
|
|
Track ID |
|
|
Type ID |
|
Request
Bash
curl -X POST "https://your-event-domain.com/api/v2/sessions/set" \
-H "Authorization: Bearer your_api_key_here" \
-F "event_id=7" \
-F "title=Opening Keynote" \
-F "language=1" \
-F "track=2" \
-F "type=3" \
-F "date=2030-06-15" \
-F "startTime=09:00" \
-F "endTime=10:00"
Response
JSON
{
"code": 200,
"response_id": "1700000000.12345",
"data": {
"id": 42,
"status": "created",
"external_id": null,
"errors": []
}
}
Store the returned id — you'll need it to update the session, attach speakers, or add participants to it.
Notes
-
datemust be inyyyy-MM-ddformat (e.g.2030-06-15) -
startTimeandendTimemust be inHH:MM24-hour format (e.g.09:00,21:30) -
endTimemust not be beforestartTime -
typeaccepts either a numeric type ID or a type name string