$filter
by ContentType
is not supported. Reason could be ContentType
is not any column of list OR Microsoft does not support it yet. $expand
is supported.
Ignore the &$filter=ContentType/Name eq 'Highlight Report'"
and see it works.
Update #1:
Following solution is regarding CAML + C#
Filter By ContentType using CAML
Now make it CAML + REST API
<View>
<Query>
<Where>
<Eq>
<FieldRef Name='ContentType'/>
<Value Type='Computed'>Highlight Report</Value>
</Eq>
</Where>
</Query>
</View>
For executing CAML in REST API
End-Point:
String.format("/_api/web/lists/getbytitle('{0}')/getitems", documentsListTitle)
HTTP Method:
POST
Request Body:
var query = "<View>" +
"<Query>" +
"<Where>" +
"<Eq>" +
"<FieldRef Name='ContentType'/>" +
"<Value Type='Computed'>Highlight Report</Value>" +
"</Eq>" +
"</Where>" +
"</Query>" +
"</View>";
var data = {
query: {
__metadata: {
'type': 'SP.CamlQuery'
},
ViewXml: query
}
};
Let me know for more modification or explanation.
String.format
.