Skip to main content
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

fmsObjectId
string
required

Unique identifier of the FmsObject to update.

Example:

"fms-obj-abc123"

Body

application/json

Request body for enabling or disabling geolocation.

isGeolocation
boolean
required

Whether geolocation tracking should be enabled for this FmsObject.

Example:

true

Response

Geolocation successfully updated.

data
object
required