Finalize Upload
Finalize a file upload after uploading to GCS via signed URL.
This endpoint should be called after the client has:
- Called create_file_entry to get a signed URL and file ID
- Uploaded the file directly to GCS using the signed URL
The endpoint fetches the actual file size from GCS and updates the database record. This is necessary because signed-URL uploads bypass our server, so we don’t know the file size until we query GCS after the upload completes.
Returns: FileResponse: The updated file record with the correct filesize
Raises: 404: If the file hasn’t been uploaded to GCS yet (blob doesn’t exist)
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
group_id
deal_id
file_id
Response
Successful Response
name
The human-readable name of the file
id
deal_id
type
The type of the file
created_at
updated_at
is_archived
filesize
The size of the file in bytes
Errors
422
Unprocessable Entity Error

