I would like to get all items from a SharePoint list, which have a specific content type.
So far I have tried
- lists/{myList}/items?$filter=contentType/id eq '{myCTId}'
- lists/{myList}/items?$filter=contentType/name eq '{myCTName}'
- lists/{myList}/items?$filter=startswith(contentType/name, '{myCTName}')
None of the above seem to work for me, all resulting in a general error.
"code": "generalException",
"message": "An unspecified error has occurred.",
Does anyone have an idea/ suggestions on how to achieve this?