{
  "opencollection": "1.0.0",
  "info": {
    "name": "Management Applications Users API",
    "version": "1"
  },
  "items": [
    {
      "info": {
        "name": "Users",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Count Users",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.moesif.com/v1/search/~/count/users",
            "params": [
              {
                "name": "orgId",
                "value": "",
                "type": "path"
              },
              {
                "name": "app_id",
                "value": "",
                "type": "query"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "resource_owner_password_credentials",
              "accessTokenUrl": "https://api.moesif.com/v1/:orgId/oauth/access_tokens",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Count Users"
        },
        {
          "info": {
            "name": "Search UserMetrics/Users",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.moesif.com/v1/search/~/search/usermetrics/users",
            "params": [
              {
                "name": "orgId",
                "value": "",
                "type": "path"
              },
              {
                "name": "app_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "from",
                "value": "",
                "type": "query",
                "description": "The start date, which can be absolute such as 2023-07-01T00:00:00Z or relative such as -24h"
              },
              {
                "name": "to",
                "value": "",
                "type": "query",
                "description": "The end date, which can be absolute such as 2023-07-02T00:00:00Z or relative such as now"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "resource_owner_password_credentials",
              "accessTokenUrl": "https://api.moesif.com/v1/:orgId/oauth/access_tokens",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Search UserMetrics/Users"
        },
        {
          "info": {
            "name": "Update a User",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.moesif.com/v1/search/~/users",
            "params": [
              {
                "name": "orgId",
                "value": "",
                "type": "path"
              },
              {
                "name": "app_id",
                "value": "",
                "type": "query"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "resource_owner_password_credentials",
              "accessTokenUrl": "https://api.moesif.com/v1/:orgId/oauth/access_tokens",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Update a User"
        },
        {
          "info": {
            "name": "Update Users in Batch",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.moesif.com/v1/search/~/users/batch",
            "params": [
              {
                "name": "orgId",
                "value": "",
                "type": "path"
              },
              {
                "name": "app_id",
                "value": "",
                "type": "query"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "resource_owner_password_credentials",
              "accessTokenUrl": "https://api.moesif.com/v1/:orgId/oauth/access_tokens",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Update Users in Batch"
        },
        {
          "info": {
            "name": "Get a User",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.moesif.com/v1/search/~/users/:id",
            "params": [
              {
                "name": "orgId",
                "value": "",
                "type": "path"
              },
              {
                "name": "app_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "resource_owner_password_credentials",
              "accessTokenUrl": "https://api.moesif.com/v1/:orgId/oauth/access_tokens",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get a User"
        },
        {
          "info": {
            "name": "Delete a User",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.moesif.com/v1/search/~/users/:id",
            "params": [
              {
                "name": "orgId",
                "value": "",
                "type": "path"
              },
              {
                "name": "app_id",
                "value": "",
                "type": "query"
              },
              {
                "name": "id",
                "value": "",
                "type": "path"
              },
              {
                "name": "delete_events",
                "value": "",
                "type": "query",
                "description": "Delete events associated with the user which can be set to true or false(default)"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "resource_owner_password_credentials",
              "accessTokenUrl": "https://api.moesif.com/v1/:orgId/oauth/access_tokens",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Delete a User"
        }
      ]
    }
  ],
  "bundled": true
}