Update an immunization shot

Updates a shot’s date and optional doctor, recalculates the student’s immunization plan, and returns the refreshed student resource. The frontend currently sends POST with _method=patch, which Laravel method-spoofs to this PATCH route.

Authentication

AuthorizationBearer

The signed-in SchoolSet user token sent by the frontend.

Path parameters

idintegerRequired
Immunization student shot ID.

Request

This endpoint expects an object.
date_givendateRequired
doctor_namestring or nullOptional

Response

Shot updated and student resource returned.
statusstring
messagestring
datamap from strings to any

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error