Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

returning multiple blocks in a single call


I was under the impression that you could query the api to get multiple blocks in one call like so,10,15

as documented here:

however I am finding I simply get a 404 when I do that, whereas making the call individually ( works fine

is there a setting I am missing somewhere?

this is the ContentApiOptions in my Startup.cs

    services.Configure<ContentApiOptions>(options =>
        options.ValidateTemplateForContentUrl = false;
        options.FlattenPropertyModel = false;
        options.EnablePreviewMode = true;
        options.IncludeEmptyContentProperties = false;
        options.IncludeMasterLanguage = false;
        options.ForceAbsolute = true;
        options.IncludeInternalContentRoots = false;
        options.IncludeSiteHosts = false;
        options.ExpandedBehavior = ExpandedLanguageBehavior.RequestedLanguage;
        options.IncludeNumericContentIdentifier = true;
        options.EnablePreviewFeatures = true;
        options.IncludeMasterLanguage = false;
Edited, May 11, 2022 7:32


If you're trying to retrieve multiple items, I think you need to use a named parameter rather than passing the IDs as a URL segment. It should work if you change the URL you're calling to be:,10,15

May 11, 2022 8:38
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.