def lost_device(
        self, number,
        text='This iPhone has been lost. Please call me.',
        newpasscode=""
    ):
        data = json.dumps({
            'text': text,
            'userText': True,
            'ownerNbr': number,
            'lostModeEnabled': True,
            'trackingEnabled': True,
            'device': self.content['id'],
            'passcode': newpasscode
        })
        self.session.post(
            self.lost_url,
            params=self.params,
            data=data
        )
Send a request to the device to trigger 'lost mode'.
dataset/ETHPy150Open picklepete/pyicloud/pyicloud/services/findmyiphone.py/AppleDevice.lost_device