{
  "opencollection": "1.0.0",
  "info": {
    "name": "Hubstaff Activities Teams API",
    "version": "2.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://account.hubstaff.com/authorizations/new",
      "accessTokenUrl": "https://account.hubstaff.com/access_tokens",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Teams",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List organization teams",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.hubstaff.com/v2/organizations/:organization_id/teams",
            "params": [
              {
                "name": "organization_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "page_start_id",
                "value": "",
                "type": "query",
                "description": "The page start ID."
              },
              {
                "name": "page_limit",
                "value": "",
                "type": "query",
                "description": "The default page size"
              }
            ]
          },
          "docs": "Returns a collection of teams for the given organization."
        },
        {
          "info": {
            "name": "Create team",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.hubstaff.com/v2/organizations/:organization_id/teams",
            "params": [
              {
                "name": "organization_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new team.\n\nReturns the created team.\n\nOnly name is required. Members can optionally be added with roles: viewer, user, or manager.\n\nNote: When a member lead is set to true, the role is forced to manager."
        },
        {
          "info": {
            "name": "Get team",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.hubstaff.com/v2/teams/:team_id",
            "params": [
              {
                "name": "team_id",
                "value": "",
                "type": "path",
                "description": "Team ID"
              }
            ]
          },
          "docs": "Returns the team with the given ID."
        }
      ]
    }
  ],
  "bundled": true
}