{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eloqua/json-schema/eloqua-custom-object-data-rest20-schema.json",
  "title": "CustomObjectData",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eloqua-application-2-0-custom-object-data-api-openapi.yml#/components/schemas/CustomObjectDataRest20",
  "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 data."
    },
    "currentStatus": {
      "type": "string",
      "description": "The custom object data's current status."
    },
    "name": {
      "type": "string",
      "description": "The name of the custom object data."
    },
    "description": {
      "type": "string",
      "description": "The description of the custom object data."
    },
    "permissions": {
      "type": "array",
      "description": "The permissions for the custom object data 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 custom object data."
    },
    "sourceTemplateId": {
      "type": "string",
      "description": "Id of the template used to create the asset."
    },
    "createdBy": {
      "type": "string",
      "readOnly": true,
      "description": "The login id of the user who created the custom object data. This is a read-only property."
    },
    "createdByName": {
      "type": "string",
      "description": "The name of the user who created the custom object data."
    },
    "createdAt": {
      "type": "string",
      "readOnly": true,
      "description": "The date and time the custom object data was created, expressed in Unix time. This is a read-only property."
    },
    "updatedBy": {
      "type": "string",
      "readOnly": true,
      "description": "The login id of the user that last updated the custom object data."
    },
    "updatedByName": {
      "type": "string",
      "description": "The name of the user who last updated the custom object data."
    },
    "updatedAt": {
      "type": "string",
      "readOnly": true,
      "description": "Unix timestamp for the date and time the custom object data was last updated."
    },
    "scheduledFor": {
      "type": "string",
      "readOnly": true,
      "description": "The date the custom object data 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>."
    },
    "contactId": {
      "type": "string",
      "description": "The contact record Id associated to this custom object data."
    },
    "accountId": {
      "type": "string",
      "description": "The account record Id associated to this custom object data. This is a read-only property."
    },
    "uniqueCode": {
      "type": "string",
      "description": "The unique code associated to the custom object data."
    },
    "customObjectRecordStatus": {
      "type": "string",
      "description": "The record status of the custom object data."
    },
    "fieldValues": {
      "type": "array",
      "description": "Array containing <code>type</code> and <code>id</code> values for all of the fields associated with a given custom object data asset. Custom object date field values must be in Unix time format.",
      "items": {
        "$ref": "#/$defs/FieldValueRest20"
      }
    },
    "isMapped": {
      "type": "string",
      "description": "Whether or not the custom object data is mapped to a custom object."
    }
  },
  "$defs": {
    "FieldValueRest20": {
      "title": "FieldValue",
      "properties": {
        "type": {
          "type": "string",
          "description": "The asset's type in Eloqua. This is a read-only property."
        },
        "value": {
          "type": "string",
          "description": "The value to set the corresponding field id to. Date values must be submitted as a unix timestamp."
        },
        "id": {
          "type": "string",
          "readOnly": true,
          "description": "The id of the field to be set to the corresponding value."
        },
        "name": {
          "type": "string",
          "description": "Name of the field value."
        }
      }
    }
  }
}