Data Item Object


A data item represents a single entry in a site's data collection.

Properties
dataStruct

Data item contents.

Property-value pairs representing the data item's payload. When retrieving a data item, it also includes the following read-only fields:

  • _id: Item ID.
  • _createdDate: Date and time the item was added to the collection.
  • _updatedDate: Date and time the item was last modified. When the item is first inserted, _createdDate and _updatedDate have the same value.
  • _ownerId: ID of the user who created the item. Can be modified with site owner permissions.

dataCollectionIdstringRead-onlymaxLength 256

ID of the collection this item belongs to.

This is the user-defined collection identifier set when the collection is created (for example, EvalCustomers), not a GUID.


idstringimmutablemaxLength 128

Data item ID.

When an item is inserted into a collection, the item's ID is automatically assigned a random value. You can optionally provide a custom ID in dataItem.id when inserting the item. If you specify an ID that already exists in the collection, the insertion will fail.

Did this help?