Reference : REST XML API reference : Elements
  
Elements
An element contains all the attribute values of the element.
GET method
Use this method to retrieve the element details. You can use the View parameter to filter the attributes.
 
URL
https://fpserver.com:9443/fp/resources/workspaces/2/modules/1/elements/001.xml
Accept header
application/xml
Response body
-<ns:Element xsi:schemaLocation="https://fpserver.com:9443/fp/namespace/workspaces/2/modules/1/element https://fpserver.com:9443/fp/resources/workspaces/2/modules/1/elements/element.xsd"> <ns:attributes> <ns:ID writable="false"> <ns:uniqueId value=""/> <ns:alias>799af0ed-6316-4116-8749-ce2353e80ac5</ns:alias> </ns:ID> <ns:Title writable="true"> <ns:text></ns:text> <ns:alias>7d5c25cb-e2a2-4d94-8b03-1cf603d2833b</ns:alias> <ns:editLink href="https://fpserver.com:9443/fp/resources/workspaces/2/modules/1/elements/1/attributes/2"/> </ns:Title> <ns:Description writable="true"></ns:Description> <ns:type_is_a_folder wr itable="true"></ns:type_is_a_folder> <ns:check_boxes_are_selected_in_the_chart writable="true"></ns:check_boxes_are_selected_in_the_chart> <ns:Element_Information writable="false"/> <ns:Owner writable="true"></ns:Owner> <ns:Creator writable="false"></ns:Creator> <ns:Created_Date writable="false"></ns:Created_Date> <ns:Last_Changed_By writable="false"></ns:Last_Changed_By> <ns:Last_Changed_Date writable="false"></ns:Last_Changed_Date> <ns:Parent_Folder writable="true"></ns:Parent_Folder> <ns:Text_List writable="true"></ns:Text_List> </ns:attributes> <ns:selfLink href="https://fpserver.com:9443/fp/resources/workspaces/2/modules/1/elements/1"/> <ns:mspLink href="https://fpserver.com:9443/fp/resources/workspaces/2/modules/1/elements/1?format=mspxml"/> <ns:htmlLink href="https://fpserver.com:9443/fp/servlet/Login?go=2,1"/> <ns:alias>7602dc18-d64c-4360-8098-de0b0a385bf8</ns:alias> </ns:Element>
 
Parameters
Type
Description
Example
view
Integer
Use this parameter to specify the view ID for retrieving the attributes that are in the view.
 
filter
Integer
This must be used with the view parameter. Use this parameter to pass the filter ID for retrieving attributes based on the filter criteria.
view=14&filter=1
metadata
String
Set the parameter to schema to retrieve the schema of the element's XML document
metadata=schema
fields
XPath expression
Use this parameter to pass XPath expression to retrieve specific set of attributes.
fields=attributes/(ID|Title|Owner)
includeHistoryOfAttributes
start
end
Boolean
Date or Date Time
Date or Date time
Set the parameter to true and specify the start and the end date to retrieve the history of the attributes.
yyyy-MM-dd'T'HH:mm:ss
yyyy-MM-dd'T'HH:mm
yyyy-MM-dd
yyyy-MM-dd HH:mm:ss
yyyy-MM-dd HH:mm
includeHistoryOfAttributes=true&start=2011-03-22T12:00:00+01:00&end=2011-06- 22T12:00:00+01:00
includeHistoryOfAttributes=true&start=2011-03-22T12:00+GMT+01:00&end=2011-06-22T12:00+GMT+01:00
genericTimeGrid
Boolean
Set the parameter to true for retrieving the time grid attribute sheets in a generic format. This can be used for reporting using Rational Insight.
Note: The user can also supply generictimegrid as a parameter.
genericTimeGrid=true
optimize
Boolean
Set the parameter to true to optimize the content. If this is set to true, the response will not include rich text and formula information of the attributes. Also alternate urls to the element will not be provided in the response.
optimize=true
includeLinkTable
Boolean
Set the parameter to true to include attributes from the link targets in the response. The view should have a link table defined for the link/link list attributes. All visible attributes shown in the link table set up will be part of the link/linklist attribute response.
includeLinkTable=true
For details and annotations of the XML format for the service document, see the XML Schema document. The URI for the schema is in the schemaLocation XML attribute of the service document.