Optimisation deleted

Token in body

{
    "updated_at": "2021-10-12T22:45:01.088711+11:00",
    "optimisation_info": {
        "id": 1,
        "type": "ADVANCED",
        "day": "2021-10-13",
        "options": {
            "end_hub": null,
            "end_place": "default_hub",
            "start_hub": null,
            "start_place": "default_hub",
            "end_location": null,
            "start_location": null
        },
        "routes": [
            {
                "id": 1,
                "driver": {
                    "member_id": 88085233,
                    "full_name": "Alexander Krasnozernitsky",
                    "car": {
                        "car_type": 1,
                        "car_type_name": "Car",
                        "capacity": 15
                    },
                    "is_online": true,
                    "work_status": "working",
                    "phone": "+61499902001",
                    "thumb_avatar_100x100": "/media/Member/a8caa923-7748-47ea-aaf8-91b801923659.png",
                    "status": "unassigned",
                    "last_location": null
                },
                "options": {},
                "total_time": 34257,
                "driving_time": 31857,
                "driving_distance": 686914,
                "start_time": "2021-10-13T08:00:00+11:00",
                "end_time": "2021-10-13T17:30:57+11:00",
                "orders_count": 1,
                "points": [
                    {
                        "id": 1,
                        "number": 1,
                        "point_kind": "hub",
                        "point_type": "hub",
                        "point_object_id": 1,
                        "point_object": {
                            "id": 1,
                            "name": "Hub#000",
                            "phone": "+61499903000",
                            "location": {
                                "id": 1,
                                "address": "31 Sturt St, Southbank VIC 3006, Australia",
                                "location": {
                                    "lat": -37.8238758,
                                    "lng": 144.9676033
                                },
                                "description": ""
                            }
                        },
                        "service_time": 0,
                        "driving_time": 0,
                        "distance": 0,
                        "start_time": "2021-10-13T08:00:00+11:00",
                        "end_time": "2021-10-13T08:00:00+11:00",
                        "planned_arrival_after": "2021-10-13T07:00:00+11:00",
                        "planned_arrival_before": "2021-10-13T10:00:00+11:00",
                        "planned_arrival": "2021-10-13T08:00:00+11:00",
                        "utilized_capacity": 0
                    },
                    {
                        "id": 2,
                        "number": 2,
                        "point_kind": "delivery",
                        "point_type": "order",
                        "point_object_id": 3,
                        "point_object": {
                            "order_id": 107758408,
                            "external_id": "external-job",
                            "is_concatenated_order": false,
                            "status": "not_assigned",
                            "customer": {
                                "id": 3,
                                "email": "[email protected]",
                                "name": "Mukhtargali Alinur",
                                "phone": null
                            },
                            "deliver_address": {
                                "id": 71946,
                                "address": "Fairfield Park Dr, Fairfield VIC 3078, Australia",
                                "location": {
                                    "lat": -37.78518,
                                    "lng": 145.0137071
                                },
                                "description": "",
                                "raw_address": "Fairfield Park Dr, Fairfield VIC 3078, Australia"
                            }
                            "deliver_after": null,
                            "deliver_before": "2021-10-13T23:59:59+11:00",
                            "pickup": null,
                            "pickup_address": null,
                            "pickup_after": null,
                            "pickup_before": null,
                            "barcodes": [],
                            "concatenated_order": null,
                            "orders": null
                        },
                        "service_time": 600,
                        "driving_time": 12757,
                        "distance": 305901,
                        "start_time": "2021-10-13T11:32:37+11:00",
                        "end_time": "2021-10-13T11:42:37+11:00",
                        "planned_arrival_after": "2021-10-13T10:30:00+11:00",
                        "planned_arrival_before": "2021-10-13T13:30:00+11:00",
                        "planned_arrival": "2021-10-13T11:32:37+11:00",
                        "utilized_capacity": 0
                    },
                    {
                        "id": 3,
                        "number": 3,
                        "point_kind": "hub",
                        "point_type": "hub",
                        "point_object_id": 2,
                        "point_object": {
                            "id": 2,
                            "name": "Hub#001",
                            "phone": "+61499903001",
                            "location": {
                                "id": 330,
                                "address": "31 Sturt St, Southbank VIC 3006, Australia",
                                "location": {
                                    "lat": -37.8238758,
                                    "lng": 144.9676033
                                },
                                "description": ""
                            }
                        },
                        "service_time": 0,
                        "driving_time": 2455,
                        "distance": 31718,
                        "start_time": "2021-10-13T17:30:57+11:00",
                        "end_time": "2021-10-13T17:30:57+11:00",
                        "planned_arrival_after": "2021-10-13T16:30:00+11:00",
                        "planned_arrival_before": "2021-10-13T19:30:00+11:00",
                        "planned_arrival": "2021-10-13T17:30:57+11:00",
                        "utilized_capacity": 0
                    }
                ],
                "color": "#828C51",
                "state": "CREATED"
            }
        ],
        "state": "REMOVED",
        "task_status": "completed",
        "group": null,
        "customers_notified": false,
        "log": {
            "messages": [
                {
                    "text": "Optimisation started",
                    "time": "2021-10-12T22:44:57.958424+11:00"
                },
                {
                    "text": "4 new jobs were assigned to  during the Optimisation",
                    "time": "2021-10-12T22:45:00.178516+11:00"
                },
                {
                    "text": "Optimisation was removed by manager . 4 jobs were unassigned",
                    "time": "2021-10-12T22:45:00.850487+11:00"
                }
            ],
            "progress": 100,
            "steps": [
                {
                    "name": "Composing the distance matrix",
                    "completed": true
                },
                {
                    "name": "Looking for the optimum routes",
                    "completed": true
                },
                {
                    "name": "Assigning jobs between the drivers",
                    "completed": true
                }
            ]
        }
    },
    "token": "3r4Vr916O7Ac5854uwI8VA",
    "topic": "optimisation.deleted"
}

Token in headers

{
    "Authorization": "Token MlfqEdN60b9fLOHEPdPGUQ",
}

Body

{
    "updated_at": "2021-10-12T22:45:01.088711+11:00",
    "optimisation_info": {
        "id": 1,
        "type": "ADVANCED",
        "day": "2021-10-13",
        "options": {
            "end_hub": null,
            "end_place": "default_hub",
            "start_hub": null,
            "start_place": "default_hub",
            "end_location": null,
            "start_location": null
        },
        "routes": [
            {
                "id": 1,
                "driver": {
                    "member_id": 88085233,
                    "full_name": "Alexander Krasnozernitsky",
                    "car": {
                        "car_type": 1,
                        "car_type_name": "Car",
                        "capacity": 15
                    },
                    "is_online": true,
                    "work_status": "working",
                    "phone": "+61499902001",
                    "thumb_avatar_100x100": "/media/Member/a8caa923-7748-47ea-aaf8-91b801923659.png",
                    "status": "unassigned",
                    "last_location": null
                },
                "options": {},
                "total_time": 34257,
                "driving_time": 31857,
                "driving_distance": 686914,
                "start_time": "2021-10-13T08:00:00+11:00",
                "end_time": "2021-10-13T17:30:57+11:00",
                "orders_count": 1,
                "points": [
                    {
                        "id": 1,
                        "number": 1,
                        "point_kind": "hub",
                        "point_type": "hub",
                        "point_object_id": 1,
                        "point_object": {
                            "id": 1,
                            "name": "Hub#000",
                            "phone": "+61499903000",
                            "location": {
                                "id": 1,
                                "address": "31 Sturt St, Southbank VIC 3006, Australia",
                                "location": {
                                    "lat": -37.8238758,
                                    "lng": 144.9676033
                                },
                                "description": ""
                            }
                        },
                        "service_time": 0,
                        "driving_time": 0,
                        "distance": 0,
                        "start_time": "2021-10-13T08:00:00+11:00",
                        "end_time": "2021-10-13T08:00:00+11:00",
                        "planned_arrival_after": "2021-10-13T07:00:00+11:00",
                        "planned_arrival_before": "2021-10-13T10:00:00+11:00",
                        "planned_arrival": "2021-10-13T08:00:00+11:00",
                        "utilized_capacity": 0
                    },
                    {
                        "id": 2,
                        "number": 2,
                        "point_kind": "delivery",
                        "point_type": "order",
                        "point_object_id": 3,
                        "point_object": {
                            "order_id": 107758408,
                            "external_id": "external-job",
                            "is_concatenated_order": false,
                            "status": "not_assigned",
                            "customer": {
                                "id": 3,
                                "email": "[email protected]",
                                "name": "Mukhtargali Alinur",
                                "phone": null
                            },
                            "deliver_address": {
                                "id": 71946,
                                "address": "Fairfield Park Dr, Fairfield VIC 3078, Australia",
                                "location": {
                                    "lat": -37.78518,
                                    "lng": 145.0137071
                                },
                                "description": "",
                                "raw_address": "Fairfield Park Dr, Fairfield VIC 3078, Australia"
                            }
                            "deliver_after": null,
                            "deliver_before": "2021-10-13T23:59:59+11:00",
                            "pickup": null,
                            "pickup_address": null,
                            "pickup_after": null,
                            "pickup_before": null,
                            "barcodes": [],
                            "concatenated_order": null,
                            "orders": null
                        },
                        "service_time": 600,
                        "driving_time": 12757,
                        "distance": 305901,
                        "start_time": "2021-10-13T11:32:37+11:00",
                        "end_time": "2021-10-13T11:42:37+11:00",
                        "planned_arrival_after": "2021-10-13T10:30:00+11:00",
                        "planned_arrival_before": "2021-10-13T13:30:00+11:00",
                        "planned_arrival": "2021-10-13T11:32:37+11:00",
                        "utilized_capacity": 0
                    },
                    {
                        "id": 3,
                        "number": 3,
                        "point_kind": "hub",
                        "point_type": "hub",
                        "point_object_id": 2,
                        "point_object": {
                            "id": 2,
                            "name": "Hub#001",
                            "phone": "+61499903001",
                            "location": {
                                "id": 330,
                                "address": "31 Sturt St, Southbank VIC 3006, Australia",
                                "location": {
                                    "lat": -37.8238758,
                                    "lng": 144.9676033
                                },
                                "description": ""
                            }
                        },
                        "service_time": 0,
                        "driving_time": 2455,
                        "distance": 31718,
                        "start_time": "2021-10-13T17:30:57+11:00",
                        "end_time": "2021-10-13T17:30:57+11:00",
                        "planned_arrival_after": "2021-10-13T16:30:00+11:00",
                        "planned_arrival_before": "2021-10-13T19:30:00+11:00",
                        "planned_arrival": "2021-10-13T17:30:57+11:00",
                        "utilized_capacity": 0
                    }
                ],
                "color": "#828C51",
                "state": "CREATED"
            }
        ],
        "state": "REMOVED",
        "task_status": "completed",
        "group": null,
        "customers_notified": false,
        "log": {
            "messages": [
                {
                    "text": "Optimisation started",
                    "time": "2021-10-12T22:44:57.958424+11:00"
                },
                {
                    "text": "4 new jobs were assigned to  during the Optimisation",
                    "time": "2021-10-12T22:45:00.178516+11:00"
                },
                {
                    "text": "Optimisation was removed by manager . 4 jobs were unassigned",
                    "time": "2021-10-12T22:45:00.850487+11:00"
                }
            ],
            "progress": 100,
            "steps": [
                {
                    "name": "Composing the distance matrix",
                    "completed": true
                },
                {
                    "name": "Looking for the optimum routes",
                    "completed": true
                },
                {
                    "name": "Assigning jobs between the drivers",
                    "completed": true
                }
            ]
        }
    },
    "topic": "optimisation.deleted"
}