curl -X POST http://localhost:3000/reset \
-H "Content-Type: application/json" \
-d '{
"sessionId": "test-session-001",
"dataPack": "professional-swe",
"baseWeek": "2024-11-18"
}'
curl -X POST http://localhost:3000/reset \
-H "Content-Type: application/json" \
-d '{
"sessionId": "test-session-002",
"dataPack": "professional-drive-v2"
}'
curl -X POST http://localhost:3000/reset \
-H "Content-Type: application/json" \
-d '{
"sessionId": "test-session-003"
}'
curl -X POST http://localhost:3000/reset \
-H "Content-Type: application/json" \
-d '{
"sessionId": "test-session-004",
"dataPack": "professional-inbox-v3"
}'
{
"message": "Session reset successfully",
"dataPack": "professional-swe",
"resetSummary": {
"events": 15,
"calendars": 3,
"users": 4
},
"loadSummary": {
"users": 4,
"calendars": 3,
"events": 15
}
}
{
"error": "sessionId is required"
}
{
"error": "Unknown data pack: invalid-pack-name"
}
Website Environments
Reset Session
Initialize or reset a session with optional data pack
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"
}'
curl -X POST http://localhost:3000/reset \
-H "Content-Type: application/json" \
-d '{
"sessionId": "test-session-002",
"dataPack": "professional-drive-v2"
}'
curl -X POST http://localhost:3000/reset \
-H "Content-Type: application/json" \
-d '{
"sessionId": "test-session-003"
}'
curl -X POST http://localhost:3000/reset \
-H "Content-Type: application/json" \
-d '{
"sessionId": "test-session-004",
"dataPack": "professional-inbox-v3"
}'
{
"message": "Session reset successfully",
"dataPack": "professional-swe",
"resetSummary": {
"events": 15,
"calendars": 3,
"users": 4
},
"loadSummary": {
"users": 4,
"calendars": 3,
"events": 15
}
}
{
"error": "sessionId is required"
}
{
"error": "Unknown data pack: invalid-pack-name"
}
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
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).curl -X POST http://localhost:3000/reset \
-H "Content-Type: application/json" \
-d '{
"sessionId": "test-session-001",
"dataPack": "professional-swe",
"baseWeek": "2024-11-18"
}'
curl -X POST http://localhost:3000/reset \
-H "Content-Type: application/json" \
-d '{
"sessionId": "test-session-002",
"dataPack": "professional-drive-v2"
}'
curl -X POST http://localhost:3000/reset \
-H "Content-Type: application/json" \
-d '{
"sessionId": "test-session-003"
}'
curl -X POST http://localhost:3000/reset \
-H "Content-Type: application/json" \
-d '{
"sessionId": "test-session-004",
"dataPack": "professional-inbox-v3"
}'
{
"message": "Session reset successfully",
"dataPack": "professional-swe",
"resetSummary": {
"events": 15,
"calendars": 3,
"users": 4
},
"loadSummary": {
"users": 4,
"calendars": 3,
"events": 15
}
}
{
"error": "sessionId is required"
}
{
"error": "Unknown data pack: invalid-pack-name"
}