DocumentQuery

Set of parameters used to filter documents.

More info: see document, the getlist operation and the documents endpoint.

Fields

FieldDescription
typeid
int 
(required)

Only return items with the given typeid.

Example value:10001
filter
string

Filter the returned items by specifying a query on the public datamodel that returns the ids.

Example value:"select id from tm.document WHERE createdts > (now() - INTERVAL '30 days')"
lastupdatesince
timestamp

All items that were updated since this timestamp will be returned. Timestamp should be passed in YYYY-MM-DD hh:mm:ss format.

Example value:"2014-09-26 15:24:36"

Example

1{
2    "typeid": 10001,
3    "filter": "select id from tm.document WHERE createdts > (now() - INTERVAL '30 days')",
4    "lastupdatesince": "2014-09-26 15:24:36"
5}