Fetching attached pages using REST

2024/05/31 7:59 PM

When getting pages using the REST API is there any way to access the data of attached pages? We have a page type that has a page field but the REST API returns null for that field, even when there is a page populated in that field in the CMS. That field's page can be accessed server-side in MVC using the generated class files, it is only when calling the REST endpoints that the field returns null. All of the more standard/basic fields for stuff like text, number etc are present and populated.

Here is the URL I am attempting this with: https://EXAMPLE.COM/rest/content/currentsite/defaultculture/childrenof/?format=json&classnames=custom.marketingBanner&topn=30&selectonlypublished=true


Environment

Answers

2024/06/01 7:09 AM
Answer
  • Hey @myoung!

Welcome to the Kentico Community Portal 👋.

This Q&A (and Portal website) is focused on Xperience by Kentico.

If you have questions about Kentico Xperience 13, you can ask them over on DevNet, which supports v13 and all previous versions.

To answer this question, you have to login first.