Initialize a new session or reset an existing session. Optionally load a pre-configured data pack to populate the environment with realistic data.
Request Body
Unique identifier for the session. Use this ID in subsequent API calls and when accessing the website.
Name of the data pack to load. Available data packs vary by environment:
Calendr : professional-swe, default
Cloudfile : professional-drive-v2, default
Shopora : default (loads automatically)
Pandora’s Inbox : professional-inbox-v3
Base date for relative time calculations (Calendr only). Format: YYYY-MM-DD. Sets the “base Monday” for variable date calculations.
Response
Success message confirming the reset
Name of the data pack that was loaded
Count of items cleared during reset. Fields vary by environment (e.g., events, calendars, users for Calendr).
Count of items loaded from the data pack. Fields vary by environment (e.g., events, calendars, users for Calendr; products for Shopora; messages for Pandora’s Inbox; files for Cloudfile).
Calendr
Cloudfile
Shopora
Pandora's Inbox
curl -X POST http://localhost:3000/reset \
-H "Content-Type: application/json" \
-d '{
"sessionId": "test-session-001",
"dataPack": "professional-swe",
"baseWeek": "2024-11-18"
}'
Calendr Response
Error - Missing Session ID
Error - Invalid Data Pack
{
"message" : "Session reset successfully" ,
"dataPack" : "professional-swe" ,
"resetSummary" : {
"events" : 15 ,
"calendars" : 3 ,
"users" : 4
},
"loadSummary" : {
"users" : 4 ,
"calendars" : 3 ,
"events" : 15
}
}