> ## Documentation Index
> Fetch the complete documentation index at: https://docs.usedroptrail.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Tracking Location

> Update the current location of a delivery in transit

Update the current location and status of a delivery that is in progress. This endpoint should be called regularly while a delivery is in transit to provide real-time tracking updates.

## Path Parameters

<ParamField path="id" type="string" required>
  The unique identifier of the delivery request
</ParamField>

## Request Body

<ParamField body="latitude" type="number" required>
  Current latitude coordinate of the delivery vehicle
</ParamField>

<ParamField body="longitude" type="number" required>
  Current longitude coordinate of the delivery vehicle
</ParamField>

<ParamField body="status" type="string">
  Updated delivery status (IN\_TRANSIT, DELIVERED)
</ParamField>

<ParamField body="notes" type="string">
  Optional notes about the current location or status update
</ParamField>

## Response

<ResponseField name="delivery_id" type="string">
  The unique identifier of the delivery request
</ResponseField>

<ResponseField name="status" type="string">
  Current status of the delivery
</ResponseField>

<ResponseField name="location" type="object">
  Current location details

  <Expandable title="properties">
    <ResponseField name="latitude" type="number">
      Updated latitude coordinate
    </ResponseField>

    <ResponseField name="longitude" type="number">
      Updated longitude coordinate
    </ResponseField>

    <ResponseField name="timestamp" type="string">
      ISO 8601 timestamp when the location was updated
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="notes" type="string">
  Any provided notes for this update
</ResponseField>

## Example Request
