{
  "opencollection": "1.0.0",
  "info": {
    "name": "Thinkific Admin Bundles Groups API",
    "version": "v1"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Groups",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Groups",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.thinkific.com/api/public/v1/groups",
            "params": [
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "The page within the collection to fetch."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "The number of items to be returned."
              }
            ]
          },
          "docs": "Retrieves a list of groups"
        },
        {
          "info": {
            "name": "Create Group",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.thinkific.com/api/public/v1/groups",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a group"
        },
        {
          "info": {
            "name": "Get Group",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.thinkific.com/api/public/v1/groups/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The ID of the Group to fetch."
              }
            ]
          },
          "docs": "Retrieves a specific group"
        },
        {
          "info": {
            "name": "Delete Group by ID",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.thinkific.com/api/public/v1/groups/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The ID of the Group in the form of an integer."
              }
            ]
          },
          "docs": "Deletes a group identified by the provided id"
        },
        {
          "info": {
            "name": "Get Group Analysts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.thinkific.com/api/public/v1/groups/:group_id/analysts",
            "params": [
              {
                "name": "group_id",
                "value": "",
                "type": "path",
                "description": "ID of the Group in the form of an integer."
              }
            ]
          },
          "docs": "Retrieves a list of group analysts"
        },
        {
          "info": {
            "name": "Assign Analysts to a Group",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.thinkific.com/api/public/v1/groups/:group_id/analysts",
            "params": [
              {
                "name": "group_id",
                "value": "",
                "type": "path",
                "description": "ID of the Group in the form of an integer."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Assign Group Analysts to a group. Users need to be assigned the Group Analyst (group_analyst) role."
        },
        {
          "info": {
            "name": "Delete Analyst",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.thinkific.com/api/public/v1/groups/:group_id/analysts/:user_id",
            "params": [
              {
                "name": "group_id",
                "value": "",
                "type": "path",
                "description": "ID of the Group in the form of an integer."
              },
              {
                "name": "user_id",
                "value": "",
                "type": "path",
                "description": "ID of the User in the form of an integer."
              }
            ]
          },
          "docs": "Remove an analyst from a group"
        }
      ]
    }
  ],
  "bundled": true
}