Update file metadata and properties
Errors
Returns an error if validation fails, file not found, or database operations fail.
Path parameters
UUID of the file to update metadata for
Request body
Example request
{
"filename": "renamed_document.pdf",
"metadata": {
"processed_at": "2023-01-01T12:00:00Z"
},
"status": "processed"
}Response
File metadata updated successfully
Example response
{
"createdAt": "2023-01-01T00:00:00Z",
"fileHash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"fileSize": 1048576,
"filename": "document.pdf",
"id": "b8c9d0e1-2345-6789-b234-678901234567",
"metadata": {
"height": 1080,
"width": 1920
},
"mimeType": "application/pdf",
"originalFilename": "My Important Document.pdf",
"status": "uploaded",
"updatedAt": "2023-01-01T00:00:00Z",
"userId": "c9d0e1f2-3456-789a-c345-789012345678"
}Changes
Changed in 4 of the 28 revisions of this API.6210
- ○
the endpoint scheme security
bearerAuth AND cookieAuthwas added to the APIapi-security-added
- ○
the endpoint scheme security
cookieAuthwas removed from the APIapi-security-removed
- ○
- ▲
removed the required property
file_hashfrom the response with the200statusresponse-required-property-removed
- ▲
removed the required property
file_sizefrom the response with the200statusresponse-required-property-removed
- ▲
removed the required property
mime_typefrom the response with the200statusresponse-required-property-removed
- ▲
removed the required property
original_filenamefrom the response with the200statusresponse-required-property-removed
- ▲
removed the required property
user_idfrom the response with the200statusresponse-required-property-removed
- ●
removed the optional property
created_atfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
updated_atfrom the response with the200statusresponse-optional-property-removed
- ○
added the optional property
createdAtto the response with the200statusresponse-optional-property-added
- ○
added the optional property
updatedAtto the response with the200statusresponse-optional-property-added
- ○
added the required property
fileHashto the response with the200statusresponse-required-property-added
- ○
added the required property
fileSizeto the response with the200statusresponse-required-property-added
- ○
added the required property
mimeTypeto the response with the200statusresponse-required-property-added
- ○
added the required property
originalFilenameto the response with the200statusresponse-required-property-added
- ○
added the required property
userIdto the response with the200statusresponse-required-property-added
- ▲
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 29 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲