Unpublished updates to already published entry not returned in API response

Builder content link

Builder public api key
2fe4147bb8c843bb8ebba475c8973899

What are you trying to accomplish
I have a published Builder page with some unpublished updates to text on the page. When viewed in the Builder editor, I see the unpublished updates correctly. However, when accessed outside of the Builder editor, only the published content is returned, no unpublished updates, even though I am including includeUnpublished=true.

Calling https://cdn.builder.io/api/v3/content/page?apiKey=2fe4147bb8c843bb8ebba475c8973899&includeUnpublished=true&url=/builder-support-test&locale=en-US&data.locale=en-US&cachebust=true&noTraverse=false only returns published content. This happens for both the Content and HTML APIs.

Code stack you are integrating Builder with
Rails and React app

Hey @lburtness,

I’m able to fetch the draft entries without any issues using the following query:
https://cdn.builder.io/api/v3/content/page?apiKey=2fe4147bb8c843bb8ebba475c8973899&includeUnpublished=true&noTraverse=True

Here’s a Loom video for a clearer understanding:

Let me know if you need any additional info!

Hi @sheema ,

My issue is with retrieving unpublished changes to already published pages. We are able to retrieve draft pages like you showed.

The following steps outline the issue:

  1. Create new page
  2. Add some content
  3. Can retrieve draft content from the API
  4. Publish the page
  5. Can retrieve published content from the API
  6. Make an edit to the page without publishing the updates
  7. Cannot retrieve these updates from the API

Hopefully that makes sense. Thank you

Hey @lburtness , thanks for the explanation. We’re aware of this issue and it’s currently being worked on. I’ll make sure to update you as soon as it’s resolved.

1 Like