Skip to main content
PUT
Import Documents

Authorizations

X-DOMO-Developer-Token
string
header
required

Domo Developer Token for authentication.

Path Parameters

collectionId
string
required

The ID of the collection.

Body

application/json
id
string

Unique identifier for the document.

datastoreId
string

ID of the datastore the document belongs to.

collectionId
string

ID of the collection the document belongs to.

syncRequired
boolean

Whether the document is pending a sync to the underlying dataset.

owner
string

User ID of the document owner. v2 endpoints return this as a string; v1 endpoints (List, Get, Query, Update) return it as a numeric integer. This differs from Collection and Datastore owner fields, which are always integers.

createdBy
string

User ID of the user who created the document. v2 endpoints always return this field. v1 endpoints return it only from Create Document; all other v1 endpoints (List, Get, Query, Update) omit it.

createdOn
string<date-time>

ISO 8601 timestamp when the document was created.

updatedOn
string<date-time>

ISO 8601 timestamp when the document was last updated.

updatedBy
string

User ID of the user who last updated the document. v2 endpoints return this as a string; v1 endpoints return it as a numeric integer.

content
object

Arbitrary JSON content of the document.

Response

200 - application/json

Import completed. Returns counts of the operations performed.

Updated
integer

Number of existing documents that were updated.

Created
integer

Number of documents created.

Upserted
integer

Number of documents inserted via upsert (matched no existing document).