{
  "opencollection": "1.0.0",
  "info": {
    "name": "SwaggerHub User Management API",
    "version": "1.3.3"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Organizations",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Organization Members",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.swaggerhub.com/orgs/:org/members",
            "params": [
              {
                "name": "org",
                "value": "",
                "type": "path",
                "description": "Organization name"
              },
              {
                "name": "page",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "q",
                "value": "",
                "type": "query",
                "description": "Filter by first name, last name, or email"
              }
            ]
          },
          "docs": "Returns a paginated list of members in the specified organization with their user IDs, usernames, email addresses, roles, and account status."
        },
        {
          "info": {
            "name": "Add Organization Members",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.swaggerhub.com/orgs/:org/members",
            "params": [
              {
                "name": "org",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Invite one or more users to an organization by email address. Optionally set their role (OWNER, DESIGNER, or CONSUMER). Non-existing users will receive an invitation email."
        },
        {
          "info": {
            "name": "Update Organization Member Role",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.swaggerhub.com/orgs/:org/members/:user",
            "params": [
              {
                "name": "org",
                "value": "",
                "type": "path"
              },
              {
                "name": "user",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Change a user's role within an organization."
        },
        {
          "info": {
            "name": "Remove Organization Member",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.swaggerhub.com/orgs/:org/members/:user",
            "params": [
              {
                "name": "org",
                "value": "",
                "type": "path"
              },
              {
                "name": "user",
                "value": "",
                "type": "path",
                "description": "Email address or username of the member to remove"
              }
            ]
          },
          "docs": "Remove a user from an organization. The user loses access to all org resources."
        }
      ]
    },
    {
      "info": {
        "name": "Teams",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Organization Teams",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.swaggerhub.com/orgs/:org/teams",
            "params": [
              {
                "name": "org",
                "value": "",
                "type": "path"
              },
              {
                "name": "page",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Returns a list of all teams within the specified organization."
        },
        {
          "info": {
            "name": "Create Team",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.swaggerhub.com/orgs/:org/teams",
            "params": [
              {
                "name": "org",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new team within an organization."
        },
        {
          "info": {
            "name": "Get Team Members",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.swaggerhub.com/orgs/:org/teams/:team/members",
            "params": [
              {
                "name": "org",
                "value": "",
                "type": "path"
              },
              {
                "name": "team",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns all members of a specific team within an organization."
        },
        {
          "info": {
            "name": "Add Team Member",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.swaggerhub.com/orgs/:org/teams/:team/members",
            "params": [
              {
                "name": "org",
                "value": "",
                "type": "path"
              },
              {
                "name": "team",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Add a user (must already be an org member) to a team."
        },
        {
          "info": {
            "name": "Remove Team Member",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.swaggerhub.com/orgs/:org/teams/:team/members/:user",
            "params": [
              {
                "name": "org",
                "value": "",
                "type": "path"
              },
              {
                "name": "team",
                "value": "",
                "type": "path"
              },
              {
                "name": "user",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Remove a user from a team (user remains an org member)."
        }
      ]
    }
  ],
  "bundled": true
}