{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eloqua/json-schema/eloqua-query-result-custom-object-rest10-schema.json",
  "title": "QueryResultCustomObject",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eloqua-application-1-0-custom-objects-api-openapi.yml#/components/schemas/QueryResultCustomObjectRest10",
  "properties": {
    "type": {
      "type": "string",
      "description": "The asset's type in Eloqua."
    },
    "elements": {
      "type": "array",
      "description": "Array of custom object fields.",
      "items": {
        "$ref": "#/$defs/CustomObjectRest10"
      }
    },
    "total": {
      "type": "integer",
      "description": "The total amount of results."
    },
    "pageSize": {
      "type": "integer",
      "description": "The page size."
    },
    "page": {
      "type": "integer",
      "description": "The specified page."
    }
  },
  "$defs": {
    "CustomObjectFieldRest10": {
      "title": "CustomObjectField",
      "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 custom object field. This is a read-only property. Use negative ids to reference custom object fields for other properties (e.g. emailAddressFieldId or uniqueCodeFieldId). See example."
        },
        "currentStatus": {
          "type": "string",
          "description": "This property is not used for custom objects."
        },
        "description": {
          "type": "string",
          "description": "This property is not used for custom object fields."
        },
        "permissions": {
          "type": "string",
          "description": "This property is not used."
        },
        "createdBy": {
          "type": "string",
          "readOnly": true,
          "description": "This property is not used for custom object fields."
        },
        "createdAt": {
          "type": "string",
          "readOnly": true,
          "description": "This property is not used for custom object fields."
        },
        "updatedBy": {
          "type": "string",
          "readOnly": true,
          "description": "This property is not used for custom object fields."
        },
        "updatedAt": {
          "type": "string",
          "readOnly": true,
          "description": "This property is not used for custom object fields."
        },
        "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>."
        },
        "name": {
          "type": "string",
          "description": "The name of the custom object field."
        },
        "displayType": {
          "type": "string",
          "description": "The custom object field's display type."
        },
        "dataType": {
          "type": "string",
          "description": "The custom object field's data type."
        },
        "defaultValue": {
          "type": "string",
          "description": "The custom object field's default value."
        }
      }
    },
    "CustomObjectRest10": {
      "title": "CustomObject",
      "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 custom object."
        },
        "currentStatus": {
          "type": "string",
          "description": "This property is not used for custom object fields."
        },
        "name": {
          "type": "string",
          "description": "The name of the custom object."
        },
        "description": {
          "type": "string",
          "description": "The description of the custom object."
        },
        "permissions": {
          "type": "string",
          "description": "The permissions for the custom object granted to your current instance. This is a read-only property."
        },
        "createdBy": {
          "type": "string",
          "readOnly": true,
          "description": "The login id of the user who created the custom object."
        },
        "createdAt": {
          "type": "string",
          "readOnly": true,
          "description": "The date and time the custom object was created, expressed in Unix time."
        },
        "updatedBy": {
          "type": "string",
          "readOnly": true,
          "description": "The login id of the user that last updated the custom object."
        },
        "updatedAt": {
          "type": "string",
          "readOnly": true,
          "description": "Unix timestamp for the date and time the custom object was last updated."
        },
        "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>."
        },
        "fields": {
          "type": "array",
          "description": "Array consisting of custom object field properties.",
          "items": {
            "$ref": "#/$defs/CustomObjectFieldRest10"
          }
        },
        "displayNameFieldId": {
          "type": "string",
          "description": "For your custom object record to have a meaningful name field, you must create a custom object field which will act as a name. You can then use the desired custom object field's id as the value for this parameter."
        },
        "uniqueCodeFieldId": {
          "type": "string",
          "description": "For your custom object record to have a unique identifier, you must create a custom object field which will act as a GUID. You can then use the desired custom object field's id as the value for this parameter."
        },
        "deleteLinkedCustomObjectData": {
          "type": "string",
          "description": "Whether or not custom object records are deleted when linked contact records are deleted. Does not apply to records that are unmapped or account deletion. Deleting records is irreversible and data cannot be recovered. The default value is <code>false</code>. This feature is released under our Controlled Availability program. You can request access to this feature by submitting a request to <a href='https://support.oracle.com/epmos/faces/MosIndex.jspx'>My Oracle Support</a>."
        }
      }
    }
  }
}