{
  "opencollection": "1.0.0",
  "info": {
    "name": "Management Applications Companies API",
    "version": "1"
  },
  "items": [
    {
      "info": {
        "name": "Companies",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Update a Company",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.moesif.com/v1/search/~/companies",
            "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 Company"
        },
        {
          "info": {
            "name": "Update Companies in Batch",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.moesif.com/v1/search/~/companies/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 Companies in Batch"
        },
        {
          "info": {
            "name": "Get a Company",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.moesif.com/v1/search/~/companies/: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 Company"
        },
        {
          "info": {
            "name": "Delete a Company",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.moesif.com/v1/search/~/companies/: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 company 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 Company"
        },
        {
          "info": {
            "name": "Count Companies",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.moesif.com/v1/search/~/count/companies",
            "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 Companies"
        },
        {
          "info": {
            "name": "Search CompanyMetrics/Companies",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.moesif.com/v1/search/~/search/companymetrics/companies",
            "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 CompanyMetrics/Companies"
        }
      ]
    }
  ],
  "bundled": true
}