Change API calls for separate nextcloud module