{
  "opencollection": "1.0.0",
  "info": {
    "name": "Spotio 2.0 Teams API",
    "version": "v1"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Teams",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create a new team",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.spotio2.com/api/Teams",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Create a new team"
        },
        {
          "info": {
            "name": "Get team details",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.spotio2.com/api/Teams/:teamId",
            "params": [
              {
                "name": "teamId",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Get team details"
        },
        {
          "info": {
            "name": "Update existing team",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.spotio2.com/api/Teams/:teamId",
            "params": [
              {
                "name": "teamId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Update existing team"
        },
        {
          "info": {
            "name": "Delete existing team",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.spotio2.com/api/Teams/:teamId",
            "params": [
              {
                "name": "teamId",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Delete existing team"
        },
        {
          "info": {
            "name": "Get team list",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.spotio2.com/api/Teams/list",
            "params": [
              {
                "name": "name",
                "value": "",
                "type": "query",
                "description": "Name of the team"
              },
              {
                "name": "sortBy",
                "value": "",
                "type": "query",
                "description": "The property to sort teams by. Order by descending required add '-' before parameter"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Get team list"
        },
        {
          "info": {
            "name": "Add users to team",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.spotio2.com/api/Teams/:teamId/addUsers",
            "params": [
              {
                "name": "teamId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Add users to team"
        },
        {
          "info": {
            "name": "Get all company teams",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.spotio2.com/api/Teams/all",
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Get teams list with base information"
        },
        {
          "info": {
            "name": "Delete many teams at once",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.spotio2.com/api/Teams/many",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Delete multiple teams by ids"
        },
        {
          "info": {
            "name": "Get users by teams",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.spotio2.com/api/Teams/users",
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Get teams members with nested teams"
        },
        {
          "info": {
            "name": "Get log of changes",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.spotio2.com/api/Teams/logs",
            "params": [
              {
                "name": "teamId",
                "value": "",
                "type": "query",
                "description": "Filter by teamId"
              },
              {
                "name": "userId",
                "value": "",
                "type": "query",
                "description": "Filter by userId"
              },
              {
                "name": "scrollId",
                "value": "",
                "type": "query",
                "description": "Next page id"
              }
            ],
            "auth": {
              "type": "apikey",
              "key": "Authorization",
              "value": "{{Authorization}}",
              "placement": "header"
            }
          },
          "docs": "Get changes log of teams"
        }
      ]
    }
  ],
  "bundled": true
}