{
  "opencollection": "1.0.0",
  "info": {
    "name": "Limble API V2 Assets Teams API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "basic",
      "username": "{{username}}",
      "password": "{{password}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Teams",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get User Teams",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.limblecmms.com/v2/users/:userID/teams",
            "params": [
              {
                "name": "userID",
                "value": "{{userID}}",
                "type": "path"
              },
              {
                "name": "teams",
                "value": "436,437",
                "type": "query",
                "description": "This parameter expects a comma-separated list of teamIDs to filter teams by"
              },
              {
                "name": "locations",
                "value": "163,74",
                "type": "query",
                "description": "This parameter expects a comma-separated list of locationIDs to filter teams by"
              },
              {
                "name": "limit",
                "value": "100",
                "type": "query",
                "description": "This parameter is a result limiter. The default is set to return no more than 100 results at one time."
              },
              {
                "name": "cursor",
                "value": "0",
                "type": "query",
                "description": "This parameter is a cursor that selects what teamID you want to start receiving results at. e.g. passing 137 here will only get you tasks with an id greater than 137."
              },
              {
                "name": "name",
                "value": "%Manager%",
                "type": "query",
                "description": "This parameter is used to only get specific team by name. This parameter expects a string full name of a user or partial name with the wildcard %."
              }
            ]
          },
          "docs": "This request gets all of the Teams a User has and what Location they have that Team at."
        },
        {
          "info": {
            "name": "Add User To Team",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.limblecmms.com/v2/users/:userID/teams",
            "params": [
              {
                "name": "userID",
                "value": "{{userID}}",
                "type": "path"
              }
            ]
          },
          "docs": "This request adds a User to a Team."
        },
        {
          "info": {
            "name": "Remove Team From User",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.limblecmms.com/v2/users/:userID/teams",
            "params": [
              {
                "name": "userID",
                "value": "{{userID}}",
                "type": "path"
              }
            ]
          },
          "docs": "This request removes a Team from a User."
        },
        {
          "info": {
            "name": "Get Teams",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.limblecmms.com/v2/teams",
            "params": [
              {
                "name": "teams",
                "value": "1778, 1771",
                "type": "query",
                "description": "This parameter expects a comma-separated list of teamIDs to filter teams by."
              },
              {
                "name": "name",
                "value": "%Lawn%",
                "type": "query",
                "description": "This parameter is used to only get specific teams by name. This parameter expects a string full name of a team or partial name with the wildcard %."
              },
              {
                "name": "limit",
                "value": "100",
                "type": "query",
                "description": "This parameter is a result limiter. The default is set to return no more than 100 results at one time."
              },
              {
                "name": "cursor",
                "value": "0",
                "type": "query",
                "description": "This parameter is a cursor that selects what teamID you want to start receiving results at. e.g. passing 137 here will only get you tasks with an id greater than 137."
              },
              {
                "name": "automaticallyCreated",
                "value": "false",
                "type": "query",
                "description": "This parameter is used to only get specific teams by if they were automatically created by Limble or not. This parameter expects a bool true or false. Teams can get dynamically created if multiple users are assigned to the same task, for example."
              },
              {
                "name": "includeRoles",
                "value": "false",
                "type": "query",
                "description": "This parameter is used to determine whether role-based teams (Manager, Technician, etc) are included in the response."
              }
            ]
          },
          "docs": "This request returns a list of Teams."
        },
        {
          "info": {
            "name": "Create Team",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.limblecmms.com/v2/teams"
          },
          "docs": "This request creates a new Team.\n\nParameter: name, Type: String, Required?: Required, Description: The name of the Team.\nParameter: locationID, Type: string, Required?: Required, Description: The locationID of the Location the Team will be available at."
        },
        {
          "info": {
            "name": "Update Team",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.limblecmms.com/v2/teams/:teamID",
            "params": [
              {
                "name": "teamID",
                "value": "{{teamID}}",
                "type": "path",
                "description": "The teamID of the team you are deleting."
              }
            ]
          },
          "docs": "Update a team name.\n\nParameter: name, Type: String, Required?: Required, Description: The name of the team."
        },
        {
          "info": {
            "name": "Delete Team",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.limblecmms.com/v2/teams/:teamID",
            "params": [
              {
                "name": "teamID",
                "value": "{{teamID}}",
                "type": "path",
                "description": "The teamID of the team you are deleting."
              }
            ]
          },
          "docs": "This request deletes a Team. This will also remove the Team from any User it is assigned to."
        }
      ]
    }
  ],
  "bundled": true
}