Update therapist
Changed onUpdate a specific field within a therapist object in the database
Request
- Base URL: http://localhost:8080/api/v1
- URL: http://localhost:8080/api/v1/therapists/{id}
- Auth: none declared
Path parameters
Therapist ID
Request body
Example request
{
"first_name": "Kevin",
"last_name": "Matilda",
"schools": [
1,
2
],
"district_id": 2,
"email": "email123@example.com",
"active": true
}Response
Therapist updated successfully
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 optional 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
- ○
- ▲
the
request property format changed from no format toemail - ▲
the response's body type changed from
stringtoobjectfor status - ●
removed the request property
- ●
removed the request property
- ○
added the new optional request property
- ○
added the new optional request property
- ○
added the new optional request property
- ○
added the non-success response with the status
- ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status
- ▲