insertDataItems( )


Important:


Adds one or more items to a collection.

A data item object contains the _id and _owner fields. The response array must include the same items that were inserted, and each returned item must be added the _createdDate and _updatedDate fields.

However, data items can also be inserted without an _id field. In that case, it is the service provider's responsibility to generate a unique ID for each item.

Method Declaration
Copy
Method Parameters
payloadInsertDataItemsEnvelope
Returns
Return Type:InsertDataItemsResponse | Promise<InsertDataItemsResponse>
Example of a `results` return value
JavaScript
Did this help?