create_submodel_element
Create a Submodel element at the root or nested path within a Submodel. Specify the element data and optional idShortPath to place it.
Instructions
Creates a Submodel element.
If id_short_path is given, creates the element at that nested path.
Otherwise, creates the element at the root level.
Corresponds to: POST /submodels/{submodel_id}/submodel-elements POST /submodels/{submodel_id}/submodel-elements/{idShortPath}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | Base URL of the AAS server. Defaults to configured host. | http://localhost:8081 |
| encode | No | Whether to Base64-encode the Submodel ID. Defaults to True. | |
| element | Yes | A dictionary representing the Submodel element to create. | |
| submodel_id | Yes | The unique identifier of the Submodel. | |
| id_short_path | No | The idShort path for the new Submodel element. |