{
  "opencollection": "1.0.0",
  "info": {
    "name": "Sana Assignments Users API",
    "version": "v0/v1"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Users",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List all users",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{domain}.sana.ai/api/v0/users",
            "params": [
              {
                "name": "next",
                "value": "",
                "type": "query",
                "description": "Cursor to fetch the next batch of results"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Number of items to return (default 100, max 1000)"
              }
            ]
          },
          "docs": "List all users"
        },
        {
          "info": {
            "name": "Create a user",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{domain}.sana.ai/api/v0/users",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a user"
        },
        {
          "info": {
            "name": "Retrieve a specific user",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{domain}.sana.ai/api/v0/users/:userId",
            "params": [
              {
                "name": "userId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Retrieve a specific user"
        },
        {
          "info": {
            "name": "Update a user",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{domain}.sana.ai/api/v0/users/:userId",
            "params": [
              {
                "name": "userId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Update a user"
        },
        {
          "info": {
            "name": "Delete a user",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{domain}.sana.ai/api/v0/users/:userId",
            "params": [
              {
                "name": "userId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete a user"
        },
        {
          "info": {
            "name": "Send an invite email to a user",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{domain}.sana.ai/api/v0/users/:userId/send-invite",
            "params": [
              {
                "name": "userId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Send an invite email to a user"
        },
        {
          "info": {
            "name": "Generate a new invite link for a user",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{domain}.sana.ai/api/v0/users/:userId/invite-link",
            "params": [
              {
                "name": "userId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Generate a new invite link for a user"
        },
        {
          "info": {
            "name": "List a user's groups",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{domain}.sana.ai/api/v0/users/:userId/groups",
            "params": [
              {
                "name": "userId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "List a user's groups"
        },
        {
          "info": {
            "name": "Set a user's manager",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{domain}.sana.ai/api/v0/users/:userId/manager/:managerId",
            "params": [
              {
                "name": "userId",
                "value": "",
                "type": "path"
              },
              {
                "name": "managerId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Set a user's manager"
        },
        {
          "info": {
            "name": "Remove a user's manager",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{domain}.sana.ai/api/v0/users/:userId/manager",
            "params": [
              {
                "name": "userId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Remove a user's manager"
        },
        {
          "info": {
            "name": "List the custom attribute schema",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{domain}.sana.ai/api/v0/users/attributes-schema"
          },
          "docs": "List the custom attribute schema"
        }
      ]
    }
  ],
  "bundled": true
}