Skip to content

Update a student

PUT
/students/{studentId}

Update student information (teacher role required)

studentId
required
integer format: int64

The ID of the student to update

All fields are optional for partial updates

object
student_name

Updated name of the student

string
>= 4 characters <= 100 characters
class_code

Updated class code for the student

string

Student updated successfully

object
success
required

Indicates if the request was successful

boolean
message
required

Response message

string
success
boolean
message
string
Allowed values: OK
data
object
student_id
integer format: int64
student_name
string
email
string format: email
class_code
string
nullable

Bad request - invalid input

object
success
required

Indicates if the request was successful

boolean
message
required

Response message

string
success
boolean
message
string
Allowed values: BAD_REQUEST

Unauthorized - authentication required

object
success
required

Indicates if the request was successful

boolean
message
required

Response message

string
success
boolean
message
string
Allowed values: UNAUTHORIZED

Forbidden - insufficient permissions

object
success
required

Indicates if the request was successful

boolean
message
required

Response message

string
success
boolean
message
string
Allowed values: FORBIDDEN

Resource not found

object
success
required

Indicates if the request was successful

boolean
message
required

Response message

string
success
boolean
message
string
Allowed values: NOT_FOUND

Internal server error

object
success
required

Indicates if the request was successful

boolean
message
required

Response message

string
success
boolean
message
string
Allowed values: INTERNAL_SERVER_ERROR