{
  "opencollection": "1.0.0",
  "info": {
    "name": "Spotio 2.0 Trips V2 API",
    "version": "v1"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "TripsV2",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Starts a new trip based on points",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.spotio2.com/api/trips/v2/start",
            "headers": [
              {
                "name": "x-app-version",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "filterId",
                "value": "",
                "type": "query"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Starts a new trip based on points"
        },
        {
          "info": {
            "name": "DELETE /api/trips/v2/active",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.spotio2.com/api/trips/v2/active",
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          }
        },
        {
          "info": {
            "name": "Add trip stops from polygon",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.spotio2.com/api/trips/v2/:id/stops/polygon",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Add trip stops from polygon"
        },
        {
          "info": {
            "name": "Retrieve a trip by ID",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.spotio2.com/api/trips/v2/:id",
            "headers": [
              {
                "name": "x-app-version",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "filterId",
                "value": "",
                "type": "query"
              },
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Retrieves details of a trip identified by its ID."
        },
        {
          "info": {
            "name": "Update a trip",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.spotio2.com/api/trips/v2/:id",
            "headers": [
              {
                "name": "x-app-version",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "filterId",
                "value": "",
                "type": "query"
              },
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Update a trip"
        },
        {
          "info": {
            "name": "Update a stop of a trip",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.spotio2.com/api/trips/v2/:id/stops/:stopId",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              },
              {
                "name": "stopId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Update a stop of a trip"
        },
        {
          "info": {
            "name": "Skip a stop of a trip",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.spotio2.com/api/trips/v2/:id/stops/:stopId/skip",
            "headers": [
              {
                "name": "x-app-version",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "filterId",
                "value": "",
                "type": "query"
              },
              {
                "name": "id",
                "value": "",
                "type": "path"
              },
              {
                "name": "stopId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Skip stop of a trip, coordinates indicate place where the skip was stopped"
        },
        {
          "info": {
            "name": "Prepare daily trip",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.spotio2.com/api/trips/v2/prepare/daily",
            "headers": [
              {
                "name": "x-app-version",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Prepare daily trip"
        },
        {
          "info": {
            "name": "Prepare trip by date",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.spotio2.com/api/trips/v2/prepare/by-date",
            "headers": [
              {
                "name": "x-app-version",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Prepare trip by date"
        },
        {
          "info": {
            "name": "Prepare trip for polygon",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.spotio2.com/api/trips/v2/prepare/polygon",
            "headers": [
              {
                "name": "x-app-version",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Prepares a trip based on a polygon request."
        },
        {
          "info": {
            "name": "GET /api/trips/v2/quickMessageTemplates",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.spotio2.com/api/trips/v2/quickMessageTemplates",
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          }
        }
      ]
    }
  ],
  "bundled": true
}