Sessions
Create a new session
Changed onCreate a new therapy session
post/sessions
Request
- Base URL: http://localhost:8080/api/v1
- URL: http://localhost:8080/api/v1/sessions
- Auth: none declared
Request body
Example request
{
"session_name": "Grammar say what?!",
"start_datetime": "2025-09-13T17:19:00Z",
"end_datetime": "2025-09-13T18:00:00Z",
"therapist_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"notes": "Daily Affirmation: My luck is so good that even four-leaf clovers ask for my autograph",
"location": "Home is where the heart is, the heart is where the spark is...",
"repetition": {
"recur_start": "2025-09-13T17:19:00Z",
"recur_end": "2025-11-13T17:19:00Z",
"every_n_weeks": 2
}
}Response
Session created successfully
Example response
[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"session_name": "Fluency work with Florence",
"start_datetime": "2024-01-15T14:30:00Z",
"end_datetime": "2024-01-15T15:30:00Z",
"therapist_id": "987fcdeb-51a2-43d1-9f4c-123456789abc",
"session_parent_id": "123e4567-e89b-12d3-a456-426614174000",
"notes": "Patient showed improvement in anxiety management techniques",
"location": "To the land where the honey runs...",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:35:00Z",
"repetition": {
"recur_start": "2025-09-13T17:19:00Z",
"recur_end": "2025-11-13T17:19:00Z",
"every_n_weeks": 2,
"days": [
1,
3,
5
]
}
}
]Changes
- ●
removed the optional property
/from the response with the status - ○
added the optional property
/to the response with the status
- ●
- ○
added the optional property
/to the response with the status - ○
added the required property
/to the response with the status
- ○