Skip to main content
PATCH
Patch Milestone

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-api-version
string<date>
default:2024-03-27

Path Parameters

milestone_id
string<uuid>
required

ID of the Milestone to be updated

Body

application/json

Details for Milestone Update

device_id
string<uuid4> | null
status
enum<string> | null
Available options:
trip_not_started,
trip_in_progress,
trip_ended
start_point

Coordinate parses Latitude and Longitude.

You can use the Coordinate data type for storing coordinates. Coordinates can be defined using one of the following formats:

  1. Tuple: (Latitude, Longitude). For example: (41.40338, 2.17403) or (Decimal('41.40338'), Decimal('2.17403')).
  2. Coordinate instance: Coordinate(latitude=Latitude, longitude=Longitude).
end_point
Coordinate · object | null

Coordinate parses Latitude and Longitude.

You can use the Coordinate data type for storing coordinates. Coordinates can be defined using one of the following formats:

  1. Tuple: (Latitude, Longitude). For example: (41.40338, 2.17403) or (Decimal('41.40338'), Decimal('2.17403')).
  2. Coordinate instance: Coordinate(latitude=Latitude, longitude=Longitude).
start_time
string<date-time> | null
end_time
string<date-time> | null
webhook_url
string<uri> | null
Required string length: 1 - 2083
webhook_enabled
boolean | null

Response

Successful Response

data
Milestone · object
required

Successful response payload