Parameter
|
Description
|
---|---|
includeAttributes
|
Set this parameter to true to retrieve the attributes of the elements.
Type: Boolean
|
view
|
Use this parameter to specify the view ID for retrieving the elements or attributes that are in the view.
Type: Integer
|
filter
|
This must be used with the view parameter. Use this parameter to pass the filter ID for retrieving elements and attributes based on the filter criteria.
Type: Integer
Example
view=14&filter=1
|
tree
|
Set this parameter to view the element collection in the tree structure
Type: Boolean
|
modifiedSince
|
Use this parameter to retrieve the element that have changed since a specified date. The following formats are supported.
Note: The user can also supply modifiedsince as a parameter.
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
Type: Date or DateTime
Example
2013-04-19T15:16:38+05:30
2009-01-22T12:00:00+01:00
|
metadata
|
Set the parameter to schema to retrieve the schema of the element collection’s XML document
Type: String
Example
metadata=schema
|
fields
|
Use this parameter to pass XPath expression to retrieve specific set of attributes or to filter elements based on specific values of attributes.
Type: XPath expression
Example: To retrieve a specific set of attributes
fields=elementCollection/Element/attributes/(ID|Title|Owner)
Example: To filter elements based on attribute values
fields=elementCollection/Element/attributes/(Title contains X OR Status is Approved )
fields=elementCollection/Element/attributes/(Title = X | Status is Approved )
fields=elementCollection/Element/attributes/(Title is X AND Status = Approved )
fields=elementCollection/Element/attributes/(Title contains X AND Cost < 100 )
|
paging, pageSize, pageNo
|
Use these parameters to retrieve the collection of elements that are paginated. When pagination is enabled the XML document shows an additional link to the next page.
Types
paging: Boolean
pageSize: Integer
Note: The user can also supply pagesize as a parameter.
pageNo: Integer
Note: The user can also supply pageno as a parameter.
Examples
<fp:link href="https://fpserver.com:9443/fp/resources/workspaces/2/modules/1/elements/?pageno=1&pageSize=2&paging=true&includeAttributes=true" rel="next" Page="0"/>
paging=true&pageSize=2&pageNo=1
|
includeHistoryOfAttributes, start, end
|
Set the parameter to “true”, and then 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
Types
includeHistoryOfAttributes: Boolean
start: Date or Date Time
end: Date or Date time
Examples
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
|
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.
Type: Boolean
Example
genericTimeGrid=true
|
optimize
|
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.
Type: Boolean
Example
optimize=true
|
includeLinkTable
|
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.
Type: Boolean
Example
includeLinkTable=true
|
sortID
|
Use this parameter to sort the elements in the collection based on an attribute in the view. Provide the id of the attribute as the value for the parameter.
Type: Integer
Example
sortID=100
|
descending
|
Use this parameter to sort the elements in the collection in descending order. If this parameter is not specified, sorting will be done in ascending order.
Type: Boolean
Example
descending=true
|
Parameter
|
Type
|
---|---|
optimize
|
Set this parameter to true to optimize element creation.
|
|
Type: Boolean
|
URL
|
https://fpserver.com:9443/fp/resources/workspaces/3/modules/1/elements/.xml?view=200&optimize=true
|
---|---|
Accept header
|
application/xml
|
Request body
|
<ns:newElement xmlns:ns="https://fpserver.com:9443/fp/namespace/workspaces/3/modules/1/views/200/elements" xmlns:fp="http://schema.ibm.com/focalpoint/resources" > ... </ns:newElement>
The root node (<ns:newElement>) is based on the module name. For example: if the module name is products, then the new element is product.
|
URL
|
https://fpserver.com:9443/fp/resources/workspaces/5/modules/1/elements/.xml
|
---|---|
Accept header
|
application/xml
|
Content type
|
multipart/related
|
Request body
|
<attributeChangeCollection xmlns:ns="https://schema.com/focalpoint/resources" > <linkListChange href="/14/attributes/224"> <ns:addLink value="https://fpserver.com:9443/fp/resources/workspaces/5/modules/3/elements/20"></ns:addLink> <ns:addLink value="https://fpserver.com:9443/fp/resources/workspaces/5/modules/3/elements/19"></ns:addLink> <ns:deleteLink value="https://fpserver.com:9443/fp/resources/workspaces/5/modules/3/elements/18"></ns:deleteLink> </linkListChange> <textListEntryChange href="./14/attributes/223/entries/" > <ns:textValue>one</ns:textValue> </textListEntryChange> </attributeChangeCollection >
|
URL
|
http://fpserver.com:9443/fp/resources/workspaces/5/modules/1/elements/.xml
|
---|---|
Accept header
|
application/xml
|
Content type
|
multipart/related
|
Request body
|
<attributeChangeCollection xmlns:ns="http://schema.com/focalpoint/resources"> <textAttributeChange href="./14/attributes/2"> <ns:textValue>new text value</ns:textValue> </textAttributeChange> <textAttributeChange href="./15/attributes/2"> <ns:textValue>new text value</ns:textValue> </textAttributeChange> <textListEntryChange href="./14/attributes/223/entries/212309123" > <ns:textValue>replaced value</ns:textValue> </textListEntryChange> </attributeChangeCollection>
|