Tracking

POST /v2/tracking/positions

Register user positions.

curl -X POST "https://api.sherpa.ai/v2/tracking/positions" \
-H "Content-Type: application/json" \
-H  "Authorization: Basic XXXX-SHERPA-TOKEN-XXXX" \
 -d '{
  "location": [{
    "accuracy": 13.265,
    "latitude": 43.3017438,
    "longitude": -2.9742999,
    "speed": 0.0,
    "stamp": "2019-07-24 09:26:47",
    "timeZone": "Europe/Madrid"
  }, 
    ...
  ]  
}'

Body

List of body fields:

FieldType
latitudeDouble
longitudeDouble
timezoneString
stampString
accuracyDouble
speedDouble

Response

CodeName
202Accepted
400Bad Request
401Unauthorized
500Internal Server Error