{
  "opencollection": "1.0.0",
  "info": {
    "name": "Sana Assignments Groups API",
    "version": "0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Groups",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List all groups.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://<domain>.sana.ai/api/v0/groups"
          },
          "docs": "List all groups."
        },
        {
          "info": {
            "name": "Create a group.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://<domain>.sana.ai/api/v0/groups"
          },
          "docs": "Create a group."
        },
        {
          "info": {
            "name": "Get a group.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://<domain>.sana.ai/api/v0/groups/:groupId",
            "params": [
              {
                "name": "groupId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a group."
        },
        {
          "info": {
            "name": "Update a group.",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://<domain>.sana.ai/api/v0/groups/:groupId",
            "params": [
              {
                "name": "groupId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Update a group."
        },
        {
          "info": {
            "name": "Delete a group.",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://<domain>.sana.ai/api/v0/groups/:groupId",
            "params": [
              {
                "name": "groupId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete a group."
        },
        {
          "info": {
            "name": "List users in a group.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://<domain>.sana.ai/api/v0/groups/:groupId/users",
            "params": [
              {
                "name": "groupId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "List users in a group."
        },
        {
          "info": {
            "name": "Add users to a group.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://<domain>.sana.ai/api/v0/groups/:groupId/users",
            "params": [
              {
                "name": "groupId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Add users to a group."
        },
        {
          "info": {
            "name": "Update a user in a group.",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://<domain>.sana.ai/api/v0/groups/:groupId/users/:userId",
            "params": [
              {
                "name": "groupId",
                "value": "",
                "type": "path"
              },
              {
                "name": "userId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Update a user in a group."
        },
        {
          "info": {
            "name": "Delete a user from a group.",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://<domain>.sana.ai/api/v0/groups/:groupId/users/:userId",
            "params": [
              {
                "name": "groupId",
                "value": "",
                "type": "path"
              },
              {
                "name": "userId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete a user from a group."
        }
      ]
    }
  ],
  "bundled": true
}