implement more file-related api requests

more complete implementation requires PR #234