{
  "opencollection": "1.0.0",
  "info": {
    "name": "Mist Admins MSPs Orgs API",
    "version": "2606.1.1"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "MSPs Orgs",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "listMspOrgs",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.mist.com/api/v1/msps/:msp_id/orgs",
            "params": [
              {
                "name": "msp_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "List organizations managed by this MSP account, including MSP ownership and organization-group membership metadata."
        },
        {
          "info": {
            "name": "createMspOrg",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.mist.com/api/v1/msps/:msp_id/orgs",
            "params": [
              {
                "name": "msp_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create an organization under this MSP, optionally assigning it to organization groups and setting organization-level defaults."
        },
        {
          "info": {
            "name": "manageMspOrgs",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.mist.com/api/v1/msps/:msp_id/orgs",
            "params": [
              {
                "name": "msp_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Assign existing organizations to this MSP account or unassign organizations from it by providing the desired operation and org IDs."
        },
        {
          "info": {
            "name": "searchMspOrgs",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.mist.com/api/v1/msps/:msp_id/orgs/search",
            "params": [
              {
                "name": "msp_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "name",
                "value": "",
                "type": "query",
                "description": "Filter results by name"
              },
              {
                "name": "org_id",
                "value": "",
                "type": "query",
                "description": "Filter results by organization identifier"
              },
              {
                "name": "sub_insufficient",
                "value": "",
                "type": "query",
                "description": "If this org has sufficient subscription"
              },
              {
                "name": "trial_enabled",
                "value": "",
                "type": "query",
                "description": "If this org is under trial period"
              },
              {
                "name": "usage_types",
                "value": "",
                "type": "query",
                "description": "List of types that enabled by usage"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum number of results to return per page"
              },
              {
                "name": "sort",
                "value": "",
                "type": "query",
                "description": "On which field the list should be sorted, -prefix represents DESC order"
              },
              {
                "name": "start",
                "value": "",
                "type": "query",
                "description": "Lower bound of the time range, as an epoch timestamp in seconds or a relative value such as `-1d` or `-1w`"
              },
              {
                "name": "end",
                "value": "",
                "type": "query",
                "description": "Upper bound of the time range, as an epoch timestamp in seconds or a relative value such as `-1d`, `-2h`, or `now`"
              },
              {
                "name": "search_after",
                "value": "",
                "type": "query",
                "description": "Pagination cursor for retrieving subsequent pages of results. This value is automatically populated by Mist in the `next` URL from the previous response and should not be manually constructed."
              }
            ]
          },
          "docs": "Search organizations under this MSP using organization identifiers, names, subscription state, trial state, usage types, and time-based filters."
        },
        {
          "info": {
            "name": "getMspOrg",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.mist.com/api/v1/msps/:msp_id/orgs/:org_id",
            "params": [
              {
                "name": "msp_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "org_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Return details for one organization managed by this MSP, including MSP ownership, organization groups, support access, and session settings."
        },
        {
          "info": {
            "name": "updateMspOrg",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.mist.com/api/v1/msps/:msp_id/orgs/:org_id",
            "params": [
              {
                "name": "msp_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "org_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update organization settings for an organization managed by this MSP."
        },
        {
          "info": {
            "name": "deleteMspOrg",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.mist.com/api/v1/msps/:msp_id/orgs/:org_id",
            "params": [
              {
                "name": "msp_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "org_id",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Delete an organization managed by this MSP. Use the MSP organization assignment endpoint when only assigning or unassigning organizations from the MSP account."
        },
        {
          "info": {
            "name": "listMspOrgStats",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.mist.com/api/v1/msps/:msp_id/stats/orgs",
            "params": [
              {
                "name": "msp_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum number of results to return per page"
              },
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "Select the page number to return when using page-based pagination; starts at `1`"
              }
            ]
          },
          "docs": "List organization statistics for organizations managed by this MSP, including device, inventory, site, and SLE summary fields."
        }
      ]
    }
  ],
  "bundled": true
}