Skip to content

Admin UploadStudentPhoto

Vaishakh GK edited this page Apr 26, 2023 · 3 revisions

Upload Student Photo

Route for uploading student photo.

URL : /api/admin/upload-student-photo?studentId=<studentId>

Method : POST

Auth Required : YES

Data constraints

The file must be of type image/jpg.

Data example

A binary file containing the image data.

Query Params

The studentId should be a string and represents the unique identifier of the student.

Query example

http://localhost:9000/api/admin/upload-student-photo?studentId=1234

Success Response

Code : 200 OK

Content example

"Successfully added"

Error Response

Condition : Not Logged In as admin

Code : 401 Unauthorized

Content :

"Not Logged In"

Condition : Server error

Code : 500 Internal Server Error

Content :

"Request failed"

Clone this wiki locally