post https://api.banking.netevia.dev/Files/deleteDocument
The POST /Files/deleteDocument API method allows users to delete a previously uploaded document based on its type. This endpoint removes the document associated with the specified fileType from the server.
Functionality:
- Deletes a document of the specified type that was previously uploaded.
- Removes the document from the server and updates the system accordingly.
Request Parameters:
fileType
(required): The type of the document to be deleted. The fileType should correspond to one of the predefined types, such as UserIcon, DriverLicense, TaxFiling, etc.
Key Features:
- Document Deletion: Allows for the removal of specific documents, helping manage and clean up user or transaction files.
- Flexible Deletion: Supports deletion of various document types previously uploaded, based on the fileType.
- Error Handling: Provides feedback on the success or failure of the delete operation, including cases where the document type is not found or the request is malformed.
This API is essential for maintaining the accuracy and relevance of stored documents, ensuring that obsolete or unnecessary files are properly managed.