Which scope does a credential need to replace a file? files:write. Reading the history and downloading a version need files:read. More: Versions and history, Who can do what