{
  "opencollection": "1.0.0",
  "info": {
    "name": "Discourse API Documentation Admin API",
    "version": "latest"
  },
  "items": [
    {
      "info": {
        "name": "Admin",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get a user by id",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{defaultHost}/admin/users/:id.json",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Get a user by id"
        },
        {
          "info": {
            "name": "Delete a user",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{defaultHost}/admin/users/:id.json",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Delete a user"
        },
        {
          "info": {
            "name": "Activate a user",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{defaultHost}/admin/users/:id/activate.json",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Activate a user"
        },
        {
          "info": {
            "name": "Deactivate a user",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{defaultHost}/admin/users/:id/deactivate.json",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Deactivate a user"
        },
        {
          "info": {
            "name": "Suspend a user",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{defaultHost}/admin/users/:id/suspend.json",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Suspend a user"
        },
        {
          "info": {
            "name": "Silence a user",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{defaultHost}/admin/users/:id/silence.json",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Silence a user"
        },
        {
          "info": {
            "name": "Anonymize a user",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://{defaultHost}/admin/users/:id/anonymize.json",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Anonymize a user"
        },
        {
          "info": {
            "name": "Log a user out",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{defaultHost}/admin/users/:id/log_out.json",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Log a user out"
        },
        {
          "info": {
            "name": "Refresh gravatar",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{defaultHost}/user_avatar/:username/refresh_gravatar.json",
            "params": [
              {
                "name": "username",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Refresh gravatar"
        },
        {
          "info": {
            "name": "List users",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{defaultHost}/admin/users.json",
            "params": [
              {
                "name": "order",
                "value": "",
                "type": "query"
              },
              {
                "name": "asc",
                "value": "",
                "type": "query"
              },
              {
                "name": "page",
                "value": "",
                "type": "query"
              },
              {
                "name": "show_emails",
                "value": "",
                "type": "query",
                "description": "Include user email addresses in response. These requests will\nbe logged in the staff action logs."
              },
              {
                "name": "stats",
                "value": "",
                "type": "query",
                "description": "Include user stats information"
              },
              {
                "name": "email",
                "value": "",
                "type": "query",
                "description": "Filter to the user with this email address"
              },
              {
                "name": "ip",
                "value": "",
                "type": "query",
                "description": "Filter to users with this IP address"
              }
            ]
          },
          "docs": "List users"
        },
        {
          "info": {
            "name": "List users by flag",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{defaultHost}/admin/users/list/:flag.json",
            "params": [
              {
                "name": "flag",
                "value": "",
                "type": "path"
              },
              {
                "name": "order",
                "value": "",
                "type": "query"
              },
              {
                "name": "asc",
                "value": "",
                "type": "query"
              },
              {
                "name": "page",
                "value": "",
                "type": "query"
              },
              {
                "name": "show_emails",
                "value": "",
                "type": "query",
                "description": "Include user email addresses in response. These requests will\nbe logged in the staff action logs."
              },
              {
                "name": "stats",
                "value": "",
                "type": "query",
                "description": "Include user stats information"
              },
              {
                "name": "email",
                "value": "",
                "type": "query",
                "description": "Filter to the user with this email address"
              },
              {
                "name": "ip",
                "value": "",
                "type": "query",
                "description": "Filter to users with this IP address"
              }
            ]
          },
          "docs": "List users by flag"
        }
      ]
    }
  ],
  "bundled": true
}