The user can associate a List to another List (or UomList to another UomList) entity as a Child or Parent.
-
After creation, the system does not allow user to change the parent/child of a List or UomList.
-
To change the association to parent/child, the List or UomList must be deleted and re-created with the correct parent/child List (or UomList).
POST/PUT [List to Parent List]
<ServiceRoot>/Sites(‘MySiteAlias’)/Plants(‘PlantA’)/Lists(‘ListId’)/Parent/$ref
{
“@odata.id”: ”<ServiceRoot>/Sites(‘MySiteAlias’)/Plants(‘PlantA’)/Lists(‘ParentListId)”
}
POST/PUT [List to Child List]
<ServiceRoot>/Sites(‘MySiteAlias’)/Plants(‘PlantA’)/Lists(‘ListId’)/Descendant/$ref
{
“@odata.id”: ”<ServiceRoot>/Sites(‘MySiteAlias’)/Plants(‘PlantA’)/Lists(‘ChildListId)”
}