Patch Milestone
Milestones
Patch Milestone
Modifies an existing milestone.
PATCH
Patch Milestone
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Path Parameters
ID of the Milestone to be updated
Body
application/json
Details for Milestone Update
Available options:
trip_not_started, trip_in_progress, trip_ended 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:
- Tuple:
(Latitude, Longitude). For example:(41.40338, 2.17403)or(Decimal('41.40338'), Decimal('2.17403')). Coordinateinstance:Coordinate(latitude=Latitude, longitude=Longitude).
from decimal import Decimal
from pydantic import BaseModel
from pydantic_extra_types.coordinate import Coordinate
class Location(BaseModel):
coordinate: Coordinate
# Using float values
location1 = Location(coordinate=(41.40338, 2.17403))
# > coordinate=Coordinate(latitude=41.40338, longitude=2.17403)
# Using Decimal values
location2 = Location(coordinate=(Decimal('41.40338'), Decimal('2.17403')))
# > coordinate=Coordinate(latitude=41.40338, longitude=2.17403)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:
- Tuple:
(Latitude, Longitude). For example:(41.40338, 2.17403)or(Decimal('41.40338'), Decimal('2.17403')). Coordinateinstance:Coordinate(latitude=Latitude, longitude=Longitude).
from decimal import Decimal
from pydantic import BaseModel
from pydantic_extra_types.coordinate import Coordinate
class Location(BaseModel):
coordinate: Coordinate
# Using float values
location1 = Location(coordinate=(41.40338, 2.17403))
# > coordinate=Coordinate(latitude=41.40338, longitude=2.17403)
# Using Decimal values
location2 = Location(coordinate=(Decimal('41.40338'), Decimal('2.17403')))
# > coordinate=Coordinate(latitude=41.40338, longitude=2.17403)Required string length:
1 - 2083Response
Successful Response
Successful response payload

