Sessions

Create a new session

Changed on

Create 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

session_namestring required

Name of the Session

start_datetimestring date-time required

Start date and time of the session

end_datetimestring date-time required

End date and time of the session

therapist_idstring uuid required

UUID of the Therapist

notesstring

Optional notes about the session

locationstring

Optional location information of the session

student_idsstring[]

List of Student IDs of the students that are being added to this Session.

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

idstring uuid required

Unique identifier for the session

session_namestring required

Name of the Session

start_datetimestring date-time required

Start date and time of the session

end_datetimestring date-time required

End date and time of the session

therapist_idstring uuid required

ID of the therapist conducting the session

session_parent_idstring uuid required

UUID of the parent session (for recurring sessions)

notesstring nullable

Session notes (optional)

locationstring nullable

Session location (optional)

created_atstring date-time nullable

When the session record was created

updated_atstring date-time nullable

When the session record was last updated

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