Skip to main content
System StatusContact Support
VersionOne Community

How to query the history of many assets

Overview

This URL will retrieve history for all Story assets you are able to see:
 

http://localhost/VersionOne/rest-1.v1/Hist/Story?sel=Name,ToDo,ChangeDate

 

<History total="203" pageSize="2147483647" pageStart="0">
	<Asset href="/VersionOne/rest-1.v1/Data/Story/1364/818" id="Story:1364:818">
		<Attribute name="Name">Company History</Attribute> 
		<Attribute name="ToDo">40</Attribute>
		<Attribute name="ChangeDate">2005-08-01T12:28:35.577</Attribute> 
	</Asset>
	<Asset href="/VersionOne/rest-1.v1/Data/Story/1364/818" id="Story:1364:874">
		<Attribute name="Name">Company History</Attribute> 
		<Attribute name="ToDo">20</Attribute>
		<Attribute name="ChangeDate">2005-08-02T11:05:12.123</Attribute>
	</Asset>
	<Asset href="/VersionOne/rest-1.v1/Data/Story/1364/903" id="Story:1364:903">
		<Attribute name="Name">Company History</Attribute> 
		<Attribute name="ToDo">0</Attribute>
		<Attribute name="ChangeDate">2005-08-03T13:09:05.983</Attribute>					
	</Asset>
	<!-- Additional Asset Nodes -->
</History>

Remarks

Again, the response is a list of historical assets. Note how each "Asset" has an "href" attribute with a moment number.

One of the attributes requested in this example is the ChangeDate attribute. This attribute is maintained by history and it indicates the exact time this change occurred.

All of the previously demonstrated query parameters can be used with historical queries also.

  • Was this article helpful?