Update file metadata or replace a file

Updates the caption or original name and can replace the stored file using the multipart file field.

Authentication

AuthorizationBearer

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

Path parameters

idintegerRequired>=1
File manager record identifier to update.

Request

This endpoint expects a multipart form containing an optional file.
filefileOptional
Replacement image
captionstringOptional
file_original_namestringOptional
diskenumOptional
Allowed values:

Response

Updated file record.
statusstringOptional
messagestringOptional
dataobjectOptional

Errors

401
Unauthorized Error
404
Not Found Error
422
Unprocessable Entity Error