New fields available for the sys object in the CDA and CPA

On October 21st we are adding new fields to the CDA (Content Delivery API) and CPA (Content Preview API). On the CDA we are adding the following fields to the sys object:

  • publishedVersion

Here is an example of a new response:

On the CPA we will be adding the following fields to the sys object:

  • firstPublishedAt (only present after an item has been published for the first time)
  • publishedAt (only present when the item is published)
  • publishedVersion (only present when the item is published)

Here is an example of a new response:

You can use the publishedVersion or publishedAt fields to determine if an entry is published. On a draft entry these fields will not exist.

All of these fields can be filtered. For more information about the available filters, see this page.

What you need to do:

If you have a setup that is dependent on the sys field shape, you will need to update your code to accommodate the new changes. For example: if you access sys fields by their numerical position in the array, this will potentially break for you as the field may be at a different position.

New fields available for the sys object in the CDA and CPA | Contentful