{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eloqua/json-schema/eloqua-query-result-account-group-rest20-schema.json",
  "title": "QueryResultAccountGroup",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eloqua-application-2-0-account-groups-api-openapi.yml#/components/schemas/QueryResultAccountGroupRest20",
  "properties": {
    "type": {
      "type": "string",
      "description": "The asset's type in Eloqua."
    },
    "elements": {
      "type": "array",
      "description": "Array of account group fields.",
      "items": {
        "$ref": "#/$defs/AccountGroupRest20"
      }
    },
    "total": {
      "type": "integer",
      "description": "The total amount of results."
    },
    "pageSize": {
      "type": "integer",
      "description": "The page size."
    },
    "page": {
      "type": "integer",
      "description": "The specified page."
    }
  },
  "$defs": {
    "AccountGroupRest20": {
      "title": "AccountGroup",
      "properties": {
        "type": {
          "type": "string",
          "description": "The asset's type in Eloqua. This is a read-only property. "
        },
        "id": {
          "type": "string",
          "readOnly": true,
          "description": "Id of the account group."
        },
        "currentStatus": {
          "type": "string",
          "description": "The account group's current status. This is a read-only property."
        },
        "name": {
          "type": "string",
          "description": "The account group's name."
        },
        "description": {
          "type": "string",
          "description": "The description of the account group."
        },
        "permissions": {
          "type": "array",
          "description": "The permissions for the account group granted to your current instance. This is a read-only property.",
          "items": {
            "type": "string"
          }
        },
        "folderId": {
          "type": "string",
          "readOnly": true,
          "description": "The folder id of the folder which contains the account group."
        },
        "sourceTemplateId": {
          "type": "string",
          "description": "Id of the template used to create the account group."
        },
        "createdBy": {
          "type": "string",
          "readOnly": true,
          "description": "The login id of the user who created the account group."
        },
        "createdByName": {
          "type": "string",
          "description": "The name of the user who created the account group."
        },
        "createdAt": {
          "type": "string",
          "readOnly": true,
          "description": "The date and time the account group was created, expressed in Unix time."
        },
        "updatedBy": {
          "type": "string",
          "readOnly": true,
          "description": "The login id of the user that last updated the account group."
        },
        "updatedByName": {
          "type": "string",
          "description": "The name of the user who last updated the account group."
        },
        "updatedAt": {
          "type": "string",
          "readOnly": true,
          "description": "Unix timestamp for the date and time the account group was last updated."
        },
        "scheduledFor": {
          "type": "string",
          "readOnly": true,
          "description": "The date the account group is scheduled."
        },
        "depth": {
          "type": "string",
          "readOnly": true,
          "description": "Level of detail returned by the request. Eloqua APIs can retrieve entities at three different levels of depth: <code>minimal</code>, <code>partial</code>, and <code>complete</code>. Any other values passed are reset to <code>complete</code> by default. For more information, see <a href='https://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAB/index.html#CSHID=RequestDepth'>Request depth</a>."
        },
        "count": {
          "type": "string",
          "description": "The number of companies within the account group. This is a read-only property."
        },
        "isArchived": {
          "type": "string",
          "description": "The account group is archived or not. This is a read-only property."
        }
      }
    }
  }
}