• <Web Interface website> - is the URI for the Web Interface website.
• <server name> - is the name of the server.
If the server name contains reserved characters, those characters must be percent encoded in the URI. Use the Servers operation request to return the URI safe version of the server name.
• <repository name> - is the name of the repository.
If the database name contains reserved characters, those characters must be percent encoded in the URI. Use the Repositories operation request to return the URI safe version of the database name.
• <model name> - is the name of the model.
If the model name contains reserved characters, those characters must be percent encoded in the URI. Use the Models operation request to return the URI safe version of the model name.
Note that the REST service cannot work with Models that have the percentage character (%) in their names.
• <version> - is the version number of the model, as it appears in Model Explorer.
• <item id>- is the id of the Modeler item, against which the ParentItem operation is being run.
You can find out the ids of items through operation requests such as ChildItems operation request.
Returned XML
A ParentItem request returns a resource URI for the parent item of the <item id> item.
When you use the preceding URI for an item, the REST service returns URIs for operation requests that can be used against the item.
Example
In this example, the following ParentItem request returns the URI for the parent item of Class1 (the item id of Class1 is e475d03c-9ed2-45b8-b943-e08d3892651b).
The returned XML is as follows. You can see that the parent item of Class1 is Package1. You can also see that there is a URI for Package1 (c61e8c1b-6c26-44a7-b2e3-c880906400e8).