A document

interface Document {
    assetIds?: number[];
    author?: string;
    createdTime: number;
    extension?: string;
    externalId?: string;
    geoLocation?: DocumentGeoJsonGeometry;
    id: number;
    instanceId?: CogniteInstanceId;
    labels?: LabelList;
    language?: string;
    lastIndexedTime?: number;
    mimeType?: string;
    modifiedTime?: number;
    pageCount?: number;
    producer?: string;
    sourceFile: DocumentSourceFile;
    title?: string;
    truncatedContent?: string;
    type?: string;
}

Properties

assetIds?: number[]

The ids of any assets referred to in the document

[42,101]
author?: string

The author of the document

William Shakespeare
createdTime: number

When the document was created, measured in milliseconds since 00:00:00 Thursday, 1 January 1970. We do a best effort to determine the created time for the document, and it will be derived from either the document metadata, the user-specified created time provided when uploading the file or as a last resort the creation timestamp of the underlying file resource.

1519862400000
extension?: string

Extension of the file (always in lowercase)

pdf
externalId?: string

The external ID for the document. This field will be the same as the value set in the Files API.

haml001

Geolocation derived for this document. Represented using a GeoJSON Geometry.

The derived geolocation also includes geolocation information from a matched asset (see assetIds property). For matched assets without geolocation information the parent chain is followed until it finds an asset with geolocation information.

id: number

The unique identifier for the document. This is automatically generated by CDF, and will be the same as the corresponding value in the Files API.

2384
instanceId?: CogniteInstanceId

The instance ID for documents created through Data Modeling. This field will be the same as the value set in the Files API.

labels?: LabelList
language?: string

The detected language used in the document

en
lastIndexedTime?: number

When the document was last indexed in the documents search engine, measured in milliseconds since 00:00:00 Thursday, 1 January 1970.

1521062805000
mimeType?: string

Detected mime type for the document

text/plain
modifiedTime?: number

When the document was last modified, measured in milliseconds since 00:00:00 Thursday, 1 January 1970. This holdes the user-specified modified time provided for the underlying file resource, but might in the future also be derived from document metadata.

1519958703000
pageCount?: number

Number of pages for multi-page documents

int32

2
producer?: string

The producer of the document. Many document types contain metadata indicating what software or system was used to create the document.

sourceFile: DocumentSourceFile

The source file that this document is derived from.

title?: string

The title of the document

Hamlet
truncatedContent?: string

The textual content of the document. Truncated to 155 characters but subject to change

ACT I
SCENE I. Elsinore. A platform before the castle.
FRANCISCO at his post. Enter to him BERNARDO
BERNARDO
Who's there?
type?: string

Detected type of document

Document