AnsweredAssumed Answered

list historic variables in order

Question asked by nicolasfranck on Dec 14, 2014
I'm trying to accomplish this:

1. list of all variable with name "lastupdated" (which is of type "date")
2. iterate through the list using "start" en "size", and order on this variable "lastupdated".
3. do this incrementally (by querying on "lastupdated")

/history/historic-variable-instances supports part of this:

variablename
start
size

I'm not sure about the service "/query/historic-variable-instances":

{
    "variableName":"lastupdated",
    "start":0,
    "size":100   
}

I get this error all the time:

{"errorMessage":"The server understands the content type of the request entity and the syntax of the request entity is correct but was unable to process the contained instructions","statusCode":422}

And this doesn't work either:

{
    "variableName":"lastupdated",
    "variables":[{"value":"2014-12-12T00:00:00Z","name":"lastupdated","type":"date","operation":"greaterThanOrEquals"}]
}

{"errorMessage":"Unsupported variable query operation: GREATER_THAN_OR_EQUALS","statusCode":400}

Any idea?

Outcomes