Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI Web API Reference

Element GetPaths

Element GetPaths

Get a list of the full or relative paths to this element.

Remarks

This method will return paths with the primary path at the first index. If there is no primary path, then null will be at the first index. If relative path is specified but does not exist, null will be returned at the first index.

Request

GET elements/{webId}/paths

URL Parameters

  • webId

    The ID of the element. See WebID for more information.

  • relativePath

    The full path in ShortName format to the parent object that the returned paths should be relative. For example, "\\Server1\Database2" would return all the paths to the element relative to the database. A path of "\\Server1\Database2\RootElement" would return all paths to the element relative to "RootElement". If null, then all the full paths to the element will be returned.

Status Codes

200: A list of the full or relative paths to this element.

Sample Response Body

{
  "Items": [
    "\\\\MyAssetServer\\Machines\\MyLocation\\Active\\MyMachine",
    "\\\\MyAssetServer\\Machines\\Provider\\MyProviderCompany\\Active\\MyMachine",
    "\\\\MyAssetServer\\Machines\\Active\\MyMachine"
  ]
}
In This Topic
TitleResults for “How to create a CRG?”Also Available in