Toggle bus geolocation
curl --request PATCH \
--url https://staging.api.prexsell.com/v2/geolocation/fms-objects/{fmsObjectId} \
--header 'Content-Type: application/json' \
--data '
{
"isGeolocation": true
}
'{
"data": {
"fmsObject": {
"id": "fms-obj-abc123",
"busId": "bus-xyz789",
"isGeolocation": true
}
}
}Geolocation
Toggle bus geolocation
Toggles geolocation tracking for an FmsObject scoped to the callerβs company. Enabling registers a per-bus polling cron so tracking starts immediately; disabling removes it. Requires a valid backoffice access token with company context.
PATCH
/
v2
/
geolocation
/
fms-objects
/
{fmsObjectId}
Toggle bus geolocation
curl --request PATCH \
--url https://staging.api.prexsell.com/v2/geolocation/fms-objects/{fmsObjectId} \
--header 'Content-Type: application/json' \
--data '
{
"isGeolocation": true
}
'{
"data": {
"fmsObject": {
"id": "fms-obj-abc123",
"busId": "bus-xyz789",
"isGeolocation": true
}
}
}Path Parameters
Unique identifier of the FmsObject to update.
Example:
"fms-obj-abc123"
Body
application/json
Request body for enabling or disabling geolocation.
Whether geolocation tracking should be enabled for this FmsObject.
Example:
true
Response
Geolocation successfully updated.
Show child attributes
Show child attributes
βI
