Administration > OData Web Services > Querying Instances on Subtype Attributes in OData
  
Querying Instances on Subtype Attributes in OData
You can perform queries using subtype attributes. The subtype must be present in the URL according to OData specifications. Only the specific type is required, not the whole type path. Querying using a subtype restricts result to the selected type.
For example, given a subtype path of Material/Apparel/Fabric/Knit where the internal name is com.ptc.Knit_Fabric_Apparel_Material$com_lcs_wc_material_LCSMaterial with a text attribute comment, the following URL allows filtering on the Knit subtype on a comment value:
<host>/Windchill/servlet/RFA-OData/Materials/RFA.
com_2e_ptc_2e_Knit_5f_Fabric_5f_Footwear_5f_Material_24_com_5f_lcs_5f_wc_5f_material_5f_LCSMaterial?
$filter=comment eq ‘my comment value’