Do you know whether these APIs - exposed by a custom repository - when getting called (specifically “file create”) by Pega, do get contextual Pega information/metadata about the file being handled?
I am assuming here that the repository is a smart repository like a DMS or Archive platform that can make use of context metadata “case ID” from which storage is initiated, so that the DMS could present a back-reference link in its own DMS UI or expose that metadata in its own views.