Element CreateElement
- Last UpdatedJun 15, 2023
- 1 minute read
- PI System
- PI Web API Reference
- Developer
Element CreateElement
Create a child element.
Request
POST elements/{webId}/elements
URL Parameters
-
webId The ID of the parent element on which to create the element. See WebID for more information.
-
webIdType Optional parameter. Used to specify the type of WebID. Useful for URL brevity and other special cases. Default is the value of the configuration item "WebIDType". See WebID Type for more information.
Body Parameter
The new element definition.
Status Codes
201: The element was created. The response's Location header is a link to the element.
Sample Request Body
{
"Name": "MachineName",
"Description": "Manufacturing Equipment MachineName",
"TemplateName": "MachineName",
"CategoryNames": [
"Equipment Assets"
],
"ExtendedProperties": {}
}