async def METHOD_NAME(
    self, request: SynapseRequest, user_id: str, device_id: str
) -> Tuple[int, JsonDict]:
    await assert_requester_is_admin(self.auth, request)
    target_user = UserID.from_string(user_id)
    if not self.is_mine(target_user):
        raise SynapseError(HTTPStatus.BAD_REQUEST, "Can only lookup local users")
    u = await self.store.get_user_by_id(target_user.to_string())
    if u is None:
        raise NotFoundError("Unknown user")
    body = parse_json_object_from_request(request, allow_empty_body=True)
    await self.device_handler.update_device(
        target_user.to_string(), device_id, body
    )
    return HTTPStatus.OK, {}