Therapists

Create a new therapist

Changed on

Create a new therapist for school districts

post/therapists

Request

  • Base URL: http://localhost:8080/api/v1
  • URL: http://localhost:8080/api/v1/therapists
  • Auth: none declared

Request body

idstring uuid required

Unique identifier for the therapist

first_namestring required

First name of the therapist

last_namestring required

Last name of the therapist

schoolsinteger[]

List of school IDs associated with the therapist

district_idinteger required

School district ID the therapist belongs to

emailstring email required

Email of the therapist

Example request

{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "first_name": "Kevin",
  "last_name": "Matilda",
  "schools": [
    1,
    2
  ],
  "district_id": 2,
  "email": "email123@example.com"
}

Response

Therapist created successfully

idstring uuid required

Unique identifier for the therapist

first_namestring required
last_namestring required
emailstring email required
schoolsinteger[]

List of school IDs associated with the therapist

district_idinteger

School district ID the therapist belongs to

school_namesstring[]

List of school names associated with the therapist

district_namestring

Name of the school district the therapist belongs to

activeboolean required

Whether the therapist is currently active

created_atstring date-time required
updated_atstring date-time required

Example response

{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "first_name": "Kevin",
  "last_name": "Matilda",
  "email": "email123@example.com",
  "schools": [
    1,
    2
  ],
  "district_id": 2,
  "school_names": [
    "Generate High",
    "Sherman Center for Academic Excellence"
  ],
  "district_name": "Generate Public Schools",
  "active": true,
  "created_at": "2024-01-15T10:30:00Z",
  "updated_at": "2024-01-15T10:35:00Z"
}

Changes

    • ▲

      added the new required request property

    • ▲

      added the new required request property

    • ○

      added the new optional request property

    • ○

      added the optional property to 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 optional property to the response with the status