November Happy Hour will be moved to Thursday December 5th.

filter=ContentType returning 404

Vote:
 

I can call https://mysite.com/api/episerver/v2.0/site?expand=* and return data. I'm trying to use the search end point to pull the start pages, to start off with:

https://mysite.com/api/episerver/v2.0/search/content?filter=ContentType/any(t:t eq 'Start Page')

I tried multiple content types. "Start Page", "Start", "Root Page", and custom page types. They all return 404. Any idea what I'm doing wrong here?

#285689
Aug 17, 2022 14:41
Vote:
 
filter=ContentType%2Fany(t:t+eq+%27StandardPage%27)
#285695
Aug 17, 2022 19:31
Vote:
 

This works for me on a new site, via Postman: 

api/episerver/v3.0/search/content?filter=ContentType/any(t:t eq 'StandardPage')

Just making sure, you've got the Content Delivery Search API package installed? 

#285731
Aug 18, 2022 3:58
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.