The user can associate an Interface to Class in two ways (Class > Interface and Interface > Class):
POST/PUT [Class to Interface]
<ServiceRoot>/Sites(‘MySiteAlias’)/Plants(‘PlantA’)/Classes(‘ClassId’)/Realizes/$ref
{
“@odata.id”: ”<ServiceRoot>/Sites(‘MySiteAlias’)/Plants(‘PlantA’)/Interfaces(‘InterfaceId’)”
}
POST/PUT [Interface to Class]
<ServiceRoot>/Sites(‘MySiteAlias’)/Plants(‘PlantA’)/Interface(‘InterfaceId’)/RealizedByClasses/$ref
{
“@odata.id”:”<ServiceRoot>/Sites(‘MySiteAlias’)/Plants(‘PlantA’)/Classes(‘ClassId)”
}