mrgiesel
mrgiesel

Reputation: 85

How get creation and modification date in Orion

I want to get the entity creation and update dates. Following the answer to this question, I should get them with

GET /v2/entities/myEntity?options=dateCreated,dateModified

In another source, the v2 reference, under the Virtual Attributes section, the options are slighter different: dateCreation and dateModification.

However, no matter which option I use, I always get the error answer:

{
    "error": "BadRequest",
    "description": "Invalid value for URI param /options/"
}

How can I get them?

Note: I'm using version 0.26 due to Proton/xml compatibility.

Upvotes: 1

Views: 241

Answers (1)

fgalan
fgalan

Reputation: 12294

The dateCreated and dateModified options were introduced in Orion 0.28.0:

Add: dateCreated and dateModified options to get entity creation and modification times as "virtual" attributes (Issue #876)

Thus, you should upgrade Orion to that version. Note that Orion 0.28.0 stills supporting XML (in fact, it will be the last release supporting it).

Upvotes: 1

Related Questions