Online call from DeviceRegistrationViewModel.performAction after a remote command runs. For LOGOUT / CLEAR_APP_DATA, if the offline queue has failed operations the app zips its databases and sends it as a multipart 'file' part (support diagnostics); on success it logs out (and for CLEAR_APP_DATA wipes app data) and returns to Splash. Other action types are just marked completed. Exceptions are swallowed, so the action stays pending and is re-fetched next start.
Headers
Header
Value
Notes
X-SESSIONID
<session token>
Passed explicitly as a Retrofit @Header from AndroidSessionManager.sessionId; AuthInterceptor also re-auths and retries once on 401/400.
Content-Type
multipart/form-data (only when a zip is attached)
Two Retrofit overloads: multipart with file, or plain PATCH.