Builder for HTTP Entity with JSON payload.
Remove `device` value when scope is not offline.