Skip to content

Add point(s)

PUT /v1/track/{track_id}/points

points is an array — you can add several points at once.

You have to wait for the response from the server before transmitting the next points.

Request

bash
curl -X PUT -H "Content-Type: application/json" -H "X-STL-Token: {{token}}" -d '{
    "points": [
        {   "latitude": 42.458970,
            "longitude": 2.767720,
            "speed": 3,
            "bearing": 213,
            "altitude": 830,
            "elevation": 750,
            "date": "2020-09-23 11:48:01 +0200"
        }
    ]
}' "https://api.sportstracklive.com/v1/track/{track_id}/points"
http
PUT /v1/track/{track_id}/points HTTP/1.1
Host: api.sportstracklive.com
Content-Type: application/json
X-STL-Token: {{token}}

{
    "points": [
        {   "latitude": 42.458970,
            "longitude": 2.767720,
            "speed": 3,
            "bearing": 213,
            "altitude": 830,
            "elevation": 750,
            "date": "2020-09-23 11:48:01 +0200"
        }
    ]
}