Hi,
I am using the api/v2/workspaces/{workspaceId}/items/query to query on items and I would like to only return the latest version of individual items. I would prefer to do this in the filters that are POST'd but I can't seem to get the correct field name
I have tried to use the following as one of my filter conditions and have tried using an id of "is_latest" and "is_latest_version" as well.
new FilterCondition { propertyDefinition = new PropertyDefinition { id = "isLatestVersion", type = PropertyType.SYSTEM.ToString(), }, Operator = FilterConditionOperator.EQUALS.ToString(), value = "true", }
Instead I get an error of "UNKNOWN PROPERTY".
"{\"errorCode\":\"FLTR_UNKNOWN_PROPERTY\",\"message\":\"Unknown property null.\",\"params\":null,\"url\":null,\"errorClass\":\"APIError\"}"
If anybody has any guidance on this, I would appreciate it!
Thanks
Mike
Solved! Go to Solution.
Solved by gasevsm. Go to Solution.