---
agentTools:
  projectIndex: https://developer-docs.gomotive.com/llms.txt
---

# Update a dispatch (v2)

**Purpose**: Use this API to update an existing dispatch.

> 👍 UPDATE - Team Dispatches
>
> We are introducing a Co-Driver association method, that allows multiple drivers to be "authorized" for a single dispatch trip. This enables seamless swapping of the "\_Active Driver" role directly from the mobile app, ensuring the driver currently behind the wheel has full visibility without requiring manual dispatcher intervention or trip re-assignment.
>
> Check the **[Sample Request Body](https://developer-docs.gomotive.com/null/null#sample-request-body-4)** section for info on the request parameters.
>
> **How to use it**\
> In the sample request body, for the `co_drivers`object, do the following:
>
> 1. Mention the driver ID of the primary driver.
> 2. Mention the driver ID of the secondary driver.
>
> For example, if your primary driver ID is 4713870, and co\_driver ID is 4713860, you will specify the body as follows:
>
> "dispatch\_trips": \[
>
> {\
> "id": 31911,\
> "driver\_id": **4713870**,\
> "co\_drivers": \[\
> **4713870**,\
> 4713860,\
> ]

> 📘 NOTE
>
> You must pass the below JSON object along with the body parameters. Below is the format of a request body.
>
> **Things to remember**:
>
> * To update an existing dispatch, you must send the entire dispatch again with the updated information.
> * To add a dispatch stop, send the dispatch again with the stop information.
> * To remove a dispatch stop, send the dispatch again without the stop information.
> * To cancel a dispatch, *do not* change the **status** of the dispatch to cancelled, but just cancel the dispatch trip. If there are multiple trips, then all of them must be cancelled for the entire dispatch to be cancelled.

## Sample Request Body

```json Sample Body Format
{
  "vendor_id":"VD-1",
  "dispatch_stops":[
    {
      "vendor_id":"VBS-2",
      "type":"delivery",
      "number":1,
      "form_ids":[
        "be4cd651-5aca-436b-8cf3-e7881c3d76b8",
        "e93b8563-53cc-4318-b957-369b5fda18d0"
      ],
      "dispatch_location_id":8387
    }
  ],
  "dispatch_trips":[
    {
      "vendor_id":"VT-2",
      "vehicle_id":2597,
      "driver_id":4806,
      "vendor_stop_ids":[
        "VSS-1",
        "VBS-2",
        "VDS-1"
      ],
      "status":"not_started"
    }
  ]
}
```
```json Update Team Dispatches v2
{
  "dispatches": [
    {
      "id": 43686,
      "order_number": "574869",
      "status": "planned",
      "dispatch_team_driving_enabled_v2": true,
      "dispatch_trips": [
        {
          "id": 31911,
          "driver_id": 4713870,
          "co_drivers": [
            4713860,
            4713870,
          ],
          "vehicle_id": 1320960,
          "dispatch_stops": [
            {
              "dispatch_stop": {
                "id": 42,
                "vendor_id": "VDS-1",
                "bill_of_lading": null,
                "comments": null,
                "driver_load": false,
                "early_date": "2017-07-13T19:13:00+00:00",
                "form_ids": [
                  "0b90adf8-2321-4198-9315-5fb57e155c15",
                  "2a00385b-7de3-48b2-9bfc-842eb168e535",
                  "fff80dfb-dda9-4502-8ca6-6c69fa6d70d6"
                ]
              }
            }
          ]
        }
      ]
    }
  ]
}
```

```json Cancel a dispatch
{
  "vendor_id":"VD-1",
  "dispatch_stops":[
    {
      "vendor_id":"VBS-2"
    }
  ],
  "dispatch_trips":[
    {
      "vendor_id":"VT-2",
      "status":"cancelled"
    }
  ]
}
```

## Response Parameters

<br />

### dispatches

* **Type**: Array of Objects
* **Description**: List of dispatches.

### dispatch

* **Type**: Object
* **Description**: Information about a specific dispatch.

### id

* **Type**: Integer
* **Description**: Unique identifier for the dispatch.

### consignee\_dispatch\_location\_id

* **Type**: Integer
* **Description**: Unique identifier for the consignee's dispatch location.

### shipper\_dispatch\_location\_id

* **Type**: Integer
* **Description**: Unique identifier for the shipper's dispatch location.

### additional\_drops

* **Type**: String
* **Description**: Number of additional drop-off locations (if available).

### additional\_pickups

* **Type**: String
* **Description**: Number of additional pickup locations (if available).

### consignee\_bill\_of\_lading

* **Type**: String
* **Description**: Bill of lading number provided by the consignee (if available).

### consignee\_comments

* **Type**: String
* **Description**: Comments provided by the consignee (if available).

### consignee\_driver\_load

* **Type**: String
* **Description**: Indicates if the consignee will load the driver (if available).

### consignee\_form\_ids

* **Type**: Array of Strings
* **Description**: List of form IDs associated with the consignee.

### consignee\_pallets

* **Type**: String
* **Description**: Number of pallets handled by the consignee (if available).

### consignee\_pieces

* **Type**: String
* **Description**: Number of pieces handled by the consignee (if available).

### consignee\_refno

* **Type**: String
* **Description**: Reference number provided by the consignee (if available).

### consignee\_status

* **Type**: String
* **Description**: Status of the consignee (e.g., "available").

### consignee\_type

* **Type**: String
* **Description**: Type of consignee (e.g., "dropoff").

### consignee\_volume

* **Type**: String
* **Description**: Volume of goods handled by the consignee (if available).

### consignee\_weight

* **Type**: String
* **Description**: Weight of goods handled by the consignee (if available).

### delivery\_early\_date

* **Type**: DateTime
* **Description**: Earliest date for delivery (if available).

### delivery\_late\_date

* **Type**: DateTime
* **Description**: Latest date for delivery (if available).

### loaded\_miles

* **Type**: String
* **Description**: Loaded miles for the dispatch (if available).

### order\_pieces

* **Type**: String
* **Description**: Number of pieces in the order (if available).

### order\_volume

* **Type**: String
* **Description**: Volume of the order (if available).

### order\_weight

* **Type**: String
* **Description**: Weight of the order (if available).

### pickup\_early\_date

* **Type**: DateTime
* **Description**: Earliest date for pickup (if available).

### pickup\_late\_date

* **Type**: DateTime
* **Description**: Latest date for pickup (if available).

### pickup\_number

* **Type**: Integer
* **Description**: Pickup number for the dispatch (if available).

### product

* **Type**: String
* **Description**: Product being shipped (if available).

### shipper\_bill\_of\_lading

* **Type**: String
* **Description**: Bill of lading number provided by the shipper (if available).

### shipper\_comments

* **Type**: String
* **Description**: Comments provided by the shipper (if available).

### shipper\_driver\_load

* **Type**: String
* **Description**: Indicates if the shipper will load the driver (if available).

### shipper\_form\_ids

* **Type**: Array of Strings
* **Description**: List of form IDs associated with the shipper.

### shipper\_pallets

* **Type**: String
* **Description**: Number of pallets handled by the shipper (if available).

### shipper\_pieces

* **Type**: String
* **Description**: Number of pieces handled by the shipper (if available).

### shipper\_status

* **Type**: String
* **Description**: Status of the shipper (e.g., "available").

### shipper\_type

* **Type**: String
* **Description**: Type of shipper (e.g., "pickup").

### shipper\_volume

* **Type**: String
* **Description**: Volume of goods handled by the shipper (if available).

### shipper\_weight

* **Type**: String
* **Description**: Weight of goods handled by the shipper (if available).

### status

* **Type**: String
* **Description**: Overall status of the dispatch (e.g., "planned").

### status\_updated\_at

* **Type**: DateTime
* **Description**: Date and time when the status was last updated.

### temperature\_max

* **Type**: String
* **Description**: Maximum temperature for the dispatch (if available).

### temperature\_min

* **Type**: String
* **Description**: Minimum temperature for the dispatch (if available).

### trailer

* **Type**: String
* **Description**: Trailer information (if available).

### consignee\_form\_entry\_ids

* **Type**: Object
* **Description**: Entries for consignee forms.

### shipper\_form\_entry\_ids

* **Type**: Object
* **Description**: Entries for shipper forms.

### auto\_complete\_forms

* **Type**: Boolean
* **Description**: Indicates if the forms should be auto-completed.

### shipper\_dispatch\_trip\_id

* **Type**: Integer
* **Description**: Unique identifier for the shipper's dispatch trip.

### consignee\_dispatch\_trip\_id

* **Type**: Integer
* **Description**: Unique identifier for the consignee's dispatch trip.

### vendor\_id

* **Type**: String
* **Description**: Vendor identifier associated with the dispatch.

### vendor\_shipper\_id

* **Type**: String
* **Description**: Vendor shipper identifier.

### vendor\_consignee\_id

* **Type**: String
* **Description**: Vendor consignee identifier.

### dispatch\_stops

* **Type**: Array of Objects
* **Description**: List of stops associated with the dispatch.

### dispatch\_stop

* **Type**: Object
* **Description**: Information about a specific stop within a dispatch.

### id (dispatch\_stop)

* **Type**: Integer
* **Description**: Unique identifier for the dispatch stop.

### bill\_of\_lading

* **Type**: String
* **Description**: Bill of lading number for the dispatch stop (if available).

### comments

* **Type**: String
* **Description**: Comments for the dispatch stop (if available).

### dispatch\_location\_id

* **Type**: Integer
* **Description**: Unique identifier for the dispatch location associated with the stop.

### driver\_load

* **Type**: String
* **Description**: Indicates if the driver will load at this stop (if available).

### early\_date

* **Type**: DateTime
* **Description**: Earliest date for the stop (if available).

### form\_ids

* **Type**: Array of Strings
* **Description**: List of form IDs associated with the stop.

### late\_date

* **Type**: DateTime
* **Description**: Latest date for the stop (if available).

### number

* **Type**: Integer
* **Description**: Stop number in the sequence.

### pallets\_in

* **Type**: String
* **Description**: Number of pallets received at this stop (if available).

### pallets\_out

* **Type**: String
* **Description**: Number of pallets delivered at this stop (if available).

### pieces

* **Type**: String
* **Description**: Number of pieces handled at this stop (if available).

### status (dispatch\_stop)

* **Type**: String
* **Description**: Status of the dispatch stop (e.g., "available").

### type

* **Type**: String
* **Description**: Type of stop (e.g., "delivery").

### volume

* **Type**: String
* **Description**: Volume of goods handled at this stop (if available).

### weight

* **Type**: String
* **Description**: Weight of goods handled at this stop (if available).

### form\_entry\_ids

* **Type**: Object
* **Description**: Entries for the forms associated with the stop.

### dispatch\_trip\_id

* **Type**: Integer
* **Description**: Unique identifier for the dispatch trip associated with the stop.

### vendor\_id (dispatch\_stop)

* **Type**: String
* **Description**: Vendor identifier associated with the dispatch stop.

### vendor\_dispatch\_location\_id

* **Type**: String
* **Description**: Vendor's dispatch location identifier for the stop.

### dispatch\_trips

* **Type**: Array of Objects
* **Description**: List of trips associated with the dispatch.

### dispatch\_trip

* **Type**: Object
* **Description**: Information about a specific trip within a dispatch.

### id (dispatch\_trip)

* **Type**: Integer
* **Description**: Unique identifier for the dispatch trip.

### status (dispatch\_trip)

* **Type**: String
* **Description**: Status of the dispatch trip (e.g., "not\_started").

### status\_updated\_at (dispatch\_trip)

* **Type**: DateTime
* **Description**: Date and time when the status of the trip was last updated (if available).

### vendor\_id (dispatch\_trip)

* **Type**: String
* **Description**: Vendor identifier associated with the dispatch trip.

### driver\_id

* **Type**: Integer
* **Description**: Unique identifier for the driver associated with the trip.

### vehicle\_id

* **Type**: Integer
* **Description**: Unique identifier for the vehicle associated with the trip.

### vendor\_shipper\_dispatch\_location\_id

* **Type**: String
* **Description**: Vendor's dispatch location identifier for the shipper.

### vendor\_consignee\_dispatch\_location\_id

* **Type**: String
* **Description**: Vendor's dispatch location identifier for the consignee.

***

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Motive",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.gomotive.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/v2/dispatches": {
      "put": {
        "summary": "Update a dispatch (v2)",
        "description": "",
        "operationId": "update-an-existing-dispatch-v2",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "id",
                  "vendor_id",
                  "status"
                ],
                "properties": {
                  "id": {
                    "type": "integer",
                    "description": "Specify the ID of the dispatch that you want to update. NOTE: You must provide either the dispatch ID or the vendor_id in order to update the dispatch.",
                    "format": "int32"
                  },
                  "vendor_id": {
                    "type": "integer",
                    "description": "Specify the ID of the vendor for which you want to update the dispatch info. NOTE: You must provide either the dispatch ID or the vendor ID in order to update the dispatch.",
                    "format": "int32"
                  },
                  "status": {
                    "type": "string",
                    "description": "Specify the status of the dispatch that you want to update. Allowed values are: active, completed, cancelled."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Update an existing dispatch": {
                    "value": "{\n  \"dispatches\": [\n    {\n      \"dispatch\": {\n        \"id\": 23,\n        \"vendor_id\": \"VD-1\",\n        \"vendor_shipper_id\": \"VSS-1\",\n        \"vendor_consignee_id\": \"VCS-1\",\n        \"driver_id\": 497583,\n        \"vehicle_id\": 24613,\n        \"additional_drops\": 0,\n        \"additional_pickups\": 0,\n        \"consignee_bill_of_lading\": \"\",\n        \"consignee_comments\": \"\",\n        \"consignee_driver_load\": false,\n        \"consignee_form_ids\": [\n          \"972f7a4e-f616-4773-800a-f314f98e9693\",\n          \"1182c274-4e15-43d0-acab-885d261ba404\",\n          \"56f0e29d-0b57-4e60-bab6-1e7493245461\"\n        ],\n        \"consignee_pallets\": 0,\n        \"consignee_pieces\": 0,\n        \"consignee_refno\": \"\",\n        \"consignee_status\": \"departed\",\n        \"consignee_type\": \"DROPOFF\",\n        \"consignee_volume\": null,\n        \"consignee_weight\": 0,\n        \"delivery_early_date\": null,\n        \"delivery_late_date\": null,\n        \"loaded_miles\": 0,\n        \"order_pieces\": null,\n        \"order_volume\": null,\n        \"order_weight\": null,\n        \"pickup_early_date\": null,\n        \"pickup_late_date\": null,\n        \"pickup_number\": \"\",\n        \"product\": \"\",\n        \"shipper_bill_of_lading\": \"\",\n        \"shipper_comments\": \"\",\n        \"shipper_driver_load\": false,\n        \"shipper_form_ids\": [\n          \"0b90adf8-2321-4198-9315-5fb57e155c15\",\n          \"2a00385b-7de3-48b2-9bfc-842eb168e535\",\n          \"fff80dfb-dda9-4502-8ca6-6c69fa6d70d6\"\n        ],\n        \"shipper_pallets\": 0,\n        \"shipper_pieces\": 0,\n        \"shipper_status\": \"departed\",\n        \"shipper_type\": \"PICKUP\",\n        \"shipper_volume\": null,\n        \"shipper_weight\": 0,\n        \"status\": \"completed\",\n        \"temperature_max\": 0,\n        \"temperature_min\": 0,\n        \"trailer\": \"\",\n        \"shipper_dispatch_location_id\": 22,\n        \"consignee_dispatch_location_id\": 19,\n        \"vendor_shipper_dispatch_location_id\": \"VSDL-1\",\n        \"vendor_consignee_dispatch_location_id\": \"VSDL-2\",\n        \"custom_field1\": null,\n        \"custom_field2\": null,\n        \"custom_field3\": null,\n        \"custom_field4\": null,\n        \"custom_field5\": null,\n        \"custom_field6\": null,\n        \"custom_field7\": null,\n        \"custom_field8\": null,\n        \"custom_field9\": null,\n        \"custom_field10\": null,\n        \"shipper_custom_field1\": null,\n        \"shipper_custom_field2\": null,\n        \"shipper_custom_field3\": null,\n        \"shipper_custom_field4\": null,\n        \"shipper_custom_field5\": null,\n        \"shipper_custom_field6\": null,\n        \"shipper_custom_field7\": null,\n        \"shipper_custom_field8\": null,\n        \"shipper_custom_field9\": null,\n        \"shipper_custom_field10\": null,\n        \"consignee_custom_field1\": null,\n        \"consignee_custom_field2\": null,\n        \"consignee_custom_field3\": null,\n        \"consignee_custom_field4\": null,\n        \"consignee_custom_field5\": null,\n        \"consignee_custom_field6\": null,\n        \"consignee_custom_field7\": null,\n        \"consignee_custom_field8\": null,\n        \"consignee_custom_field9\": null,\n        \"consignee_custom_field10\": null,\n        \"dispatch_stops\": [\n          {\n            \"dispatch_stop\": {\n              \"id\": 42,\n              \"vendor_id\": \"VDS-1\",\n              \"bill_of_lading\": null,\n              \"comments\": null,\n              \"driver_load\": false,\n              \"early_date\": \"2017-07-13T19:13:00+00:00\",\n              \"form_ids\": [\n                \"0b90adf8-2321-4198-9315-5fb57e155c15\",\n                \"2a00385b-7de3-48b2-9bfc-842eb168e535\",\n                \"fff80dfb-dda9-4502-8ca6-6c69fa6d70d6\"\n              ],\n              \"late_date\": null,\n              \"number\": 2,\n              \"pallets_in\": null,\n              \"pallets_out\": null,\n              \"pieces\": null,\n              \"status\": \"available\",\n              \"type\": \"PU\",\n              \"volume\": null,\n              \"weight\": null,\n              \"custom_field1\": null,\n              \"custom_field2\": null,\n              \"custom_field3\": null,\n              \"custom_field4\": null,\n              \"custom_field5\": null,\n              \"custom_field6\": null,\n              \"custom_field7\": null,\n              \"custom_field8\": null,\n              \"custom_field9\": null,\n              \"custom_field10\": null,\n              \"dispatch_location_id\": 1,\n              \"vendor_dispatch_location_id\": \"VDSL-1\"\n            }\n          }\n        ]\n      }\n    }\n  ],\n  \"pagination\": {\n    \"per_page\": 25,\n    \"page_no\": 1,\n    \"total\": 1\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "dispatches": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "dispatch": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "example": 23,
                                "default": 0
                              },
                              "vendor_id": {
                                "type": "string",
                                "example": "VD-1"
                              },
                              "vendor_shipper_id": {
                                "type": "string",
                                "example": "VSS-1"
                              },
                              "vendor_consignee_id": {
                                "type": "string",
                                "example": "VCS-1"
                              },
                              "driver_id": {
                                "type": "integer",
                                "example": 497583,
                                "default": 0
                              },
                              "vehicle_id": {
                                "type": "integer",
                                "example": 24613,
                                "default": 0
                              },
                              "additional_drops": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "additional_pickups": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "consignee_bill_of_lading": {
                                "type": "string",
                                "example": ""
                              },
                              "consignee_comments": {
                                "type": "string",
                                "example": ""
                              },
                              "consignee_driver_load": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "consignee_form_ids": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "example": "972f7a4e-f616-4773-800a-f314f98e9693"
                                }
                              },
                              "consignee_pallets": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "consignee_pieces": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "consignee_refno": {
                                "type": "string",
                                "example": ""
                              },
                              "consignee_status": {
                                "type": "string",
                                "example": "departed"
                              },
                              "consignee_type": {
                                "type": "string",
                                "example": "DROPOFF"
                              },
                              "consignee_volume": {},
                              "consignee_weight": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "delivery_early_date": {},
                              "delivery_late_date": {},
                              "loaded_miles": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "order_pieces": {},
                              "order_volume": {},
                              "order_weight": {},
                              "pickup_early_date": {},
                              "pickup_late_date": {},
                              "pickup_number": {
                                "type": "string",
                                "example": ""
                              },
                              "product": {
                                "type": "string",
                                "example": ""
                              },
                              "shipper_bill_of_lading": {
                                "type": "string",
                                "example": ""
                              },
                              "shipper_comments": {
                                "type": "string",
                                "example": ""
                              },
                              "shipper_driver_load": {
                                "type": "boolean",
                                "example": false,
                                "default": true
                              },
                              "shipper_form_ids": {
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "example": "0b90adf8-2321-4198-9315-5fb57e155c15"
                                }
                              },
                              "shipper_pallets": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "shipper_pieces": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "shipper_status": {
                                "type": "string",
                                "example": "departed"
                              },
                              "shipper_type": {
                                "type": "string",
                                "example": "PICKUP"
                              },
                              "shipper_volume": {},
                              "shipper_weight": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "status": {
                                "type": "string",
                                "example": "completed"
                              },
                              "temperature_max": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "temperature_min": {
                                "type": "integer",
                                "example": 0,
                                "default": 0
                              },
                              "trailer": {
                                "type": "string",
                                "example": ""
                              },
                              "shipper_dispatch_location_id": {
                                "type": "integer",
                                "example": 22,
                                "default": 0
                              },
                              "consignee_dispatch_location_id": {
                                "type": "integer",
                                "example": 19,
                                "default": 0
                              },
                              "vendor_shipper_dispatch_location_id": {
                                "type": "string",
                                "example": "VSDL-1"
                              },
                              "vendor_consignee_dispatch_location_id": {
                                "type": "string",
                                "example": "VSDL-2"
                              },
                              "custom_field1": {},
                              "custom_field2": {},
                              "custom_field3": {},
                              "custom_field4": {},
                              "custom_field5": {},
                              "custom_field6": {},
                              "custom_field7": {},
                              "custom_field8": {},
                              "custom_field9": {},
                              "custom_field10": {},
                              "shipper_custom_field1": {},
                              "shipper_custom_field2": {},
                              "shipper_custom_field3": {},
                              "shipper_custom_field4": {},
                              "shipper_custom_field5": {},
                              "shipper_custom_field6": {},
                              "shipper_custom_field7": {},
                              "shipper_custom_field8": {},
                              "shipper_custom_field9": {},
                              "shipper_custom_field10": {},
                              "consignee_custom_field1": {},
                              "consignee_custom_field2": {},
                              "consignee_custom_field3": {},
                              "consignee_custom_field4": {},
                              "consignee_custom_field5": {},
                              "consignee_custom_field6": {},
                              "consignee_custom_field7": {},
                              "consignee_custom_field8": {},
                              "consignee_custom_field9": {},
                              "consignee_custom_field10": {},
                              "dispatch_stops": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "dispatch_stop": {
                                      "type": "object",
                                      "properties": {
                                        "id": {
                                          "type": "integer",
                                          "example": 42,
                                          "default": 0
                                        },
                                        "vendor_id": {
                                          "type": "string",
                                          "example": "VDS-1"
                                        },
                                        "bill_of_lading": {},
                                        "comments": {},
                                        "driver_load": {
                                          "type": "boolean",
                                          "example": false,
                                          "default": true
                                        },
                                        "early_date": {
                                          "type": "string",
                                          "example": "2017-07-13T19:13:00+00:00"
                                        },
                                        "form_ids": {
                                          "type": "array",
                                          "items": {
                                            "type": "string",
                                            "example": "0b90adf8-2321-4198-9315-5fb57e155c15"
                                          }
                                        },
                                        "late_date": {},
                                        "number": {
                                          "type": "integer",
                                          "example": 2,
                                          "default": 0
                                        },
                                        "pallets_in": {},
                                        "pallets_out": {},
                                        "pieces": {},
                                        "status": {
                                          "type": "string",
                                          "example": "available"
                                        },
                                        "type": {
                                          "type": "string",
                                          "example": "PU"
                                        },
                                        "volume": {},
                                        "weight": {},
                                        "custom_field1": {},
                                        "custom_field2": {},
                                        "custom_field3": {},
                                        "custom_field4": {},
                                        "custom_field5": {},
                                        "custom_field6": {},
                                        "custom_field7": {},
                                        "custom_field8": {},
                                        "custom_field9": {},
                                        "custom_field10": {},
                                        "dispatch_location_id": {
                                          "type": "integer",
                                          "example": 1,
                                          "default": 0
                                        },
                                        "vendor_dispatch_location_id": {
                                          "type": "string",
                                          "example": "VDSL-1"
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "pagination": {
                      "type": "object",
                      "properties": {
                        "per_page": {
                          "type": "integer",
                          "example": 25,
                          "default": 0
                        },
                        "page_no": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        },
                        "total": {
                          "type": "integer",
                          "example": 1,
                          "default": 0
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Unable to update dispatch": {
                    "value": "{\n  \"error_message\": \"dispatch could not be updated\"\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "error_message": {
                      "type": "string",
                      "example": "dispatch could not be updated"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "66acf64a829e88001980fbf2:66ce228d9687dd00111910cb"
}
```