Skip to main content
POST
/
reset
curl -X POST http://localhost:3000/reset \
  -H "Content-Type: application/json" \
  -d '{
    "sessionId": "test-session-001",
    "dataPack": "professional-swe",
    "baseWeek": "2024-11-18"
  }'
{
  "message": "Session reset successfully",
  "dataPack": "professional-swe",
  "resetSummary": {
    "events": 15,
    "calendars": 3,
    "users": 4
  },
  "loadSummary": {
    "users": 4,
    "calendars": 3,
    "events": 15
  }
}
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

sessionId
string
required
Unique identifier for the session. Use this ID in subsequent API calls and when accessing the website.
dataPack
string
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
baseWeek
string
Base date for relative time calculations (Calendr only). Format: YYYY-MM-DD. Sets the “base Monday” for variable date calculations.

Response

message
string
Success message confirming the reset
dataPack
string
Name of the data pack that was loaded
resetSummary
object
Count of items cleared during reset. Fields vary by environment (e.g., events, calendars, users for Calendr).
loadSummary
object
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).
curl -X POST http://localhost:3000/reset \
  -H "Content-Type: application/json" \
  -d '{
    "sessionId": "test-session-001",
    "dataPack": "professional-swe",
    "baseWeek": "2024-11-18"
  }'
{
  "message": "Session reset successfully",
  "dataPack": "professional-swe",
  "resetSummary": {
    "events": 15,
    "calendars": 3,
    "users": 4
  },
  "loadSummary": {
    "users": 4,
    "calendars": 3,
    "events": 15
  }
}