Use an uploaded file as photo

Assigns an existing file-manager image to the student and returns the refreshed profile.

Authentication

AuthorizationBearer

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

Path parameters

idintegerRequired>=1
Student identifier.

Query parameters

batch_idintegerOptional>=1
Academic year used when rebuilding the student response.

Request

This endpoint expects an object.
file_manager_idintegerRequired>=1

Response

The existing file was assigned as the student's photo.
statusstringOptional
messagestringOptional
dataobjectOptional

Errors

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