{
  "opencollection": "1.0.0",
  "info": {
    "name": "WatchGuard Cloud Platform Accounts API",
    "version": "v1"
  },
  "items": [
    {
      "info": {
        "name": "Accounts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get Account Information",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.usa.cloud.watchguard.com/rest/platform/accounts/v1/accounts/:accountId",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "WatchGuard Cloud account ID (e.g., WGC-1-123abc456 or ACC-1234567)."
              },
              {
                "name": "fields",
                "value": "",
                "type": "query",
                "description": "Specify additional fields to include in the response."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Retrieve information about a WatchGuard Cloud account including contacts, addresses, parent account, and service properties."
        },
        {
          "info": {
            "name": "Create Account",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.usa.cloud.watchguard.com/rest/platform/accounts/v1/accounts/:accountId",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "WatchGuard Cloud account ID (e.g., WGC-1-123abc456 or ACC-1234567)."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create a new WatchGuard Cloud managed account (service provider or subscriber)."
        },
        {
          "info": {
            "name": "Update Account",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.usa.cloud.watchguard.com/rest/platform/accounts/v1/accounts/:accountId",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "WatchGuard Cloud account ID (e.g., WGC-1-123abc456 or ACC-1234567)."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update the name and primary contact details of a managed account."
        },
        {
          "info": {
            "name": "Delete Account",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.usa.cloud.watchguard.com/rest/platform/accounts/v1/accounts/:accountId",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "WatchGuard Cloud account ID (e.g., WGC-1-123abc456 or ACC-1234567)."
              },
              {
                "name": "force",
                "value": "",
                "type": "query",
                "description": "If true, delete the account and all managed sub-accounts."
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Delete a managed WatchGuard Cloud account and optionally all its sub-accounts."
        },
        {
          "info": {
            "name": "Get Managed Accounts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.usa.cloud.watchguard.com/rest/platform/accounts/v1/accounts/:accountId/children",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "path",
                "description": "WatchGuard Cloud account ID (e.g., WGC-1-123abc456 or ACC-1234567)."
              },
              {
                "name": "type",
                "value": "",
                "type": "query",
                "description": "Filter by account type (0=All, 1=Service Provider, 2=Subscriber)."
              },
              {
                "name": "sortBy",
                "value": "",
                "type": "query"
              },
              {
                "name": "sortOrder",
                "value": "",
                "type": "query"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "name",
                "value": "",
                "type": "query",
                "description": "Filter accounts by name."
              },
              {
                "name": "includeDelegatedAccounts",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Retrieve a paginated list of accounts managed by the specified account."
        }
      ]
    }
  ],
  "bundled": true
}