Release Note 20th May
Dynamic Content- Content Delivery 2, retrieving multiple items in the same request
In this release
In this release we've made some improvements to Content Delivery 2, our next generation delivery API. Content Delivery 2 now supports retrieving multiple content items and slots in the same request, making it even faster to get your content.
Content Delivery 2 API- retrieving multiple content items and slots
With the Content Delivery 2 API you can retrieve content by key as well as id and easily specify the format of JSON that the API returns. With the features introduced in this release, you can now choose to retrieve content items individually, or get multiple items in a single request, either by delivery key or id. Within the request you can also specify the parameters used to return each item.
Retrieving multiple items at once provides developers with greater flexibility and is particularly useful if you want to get all the items in a particular category, or page, for example.
The Content Delivery 2 API reference provides the complete definition of the API, including request format, parameters, example responses and error codes.
The API uses the OpenAPI format which can be imported into API tools such as such as Insomnia or Postman. This is a great way to get familiar with the API, the request format and responses, as shown in the example below.
You can find out more about the enhanced API on our Content Delivery 2 overview page which includes example requests and responses.
Adding multiple items to slots in one action- increased item limit
In a previous release we introduced a feature to allow you to add multiple content items or snapshots to a slot in an edition. We've increased the limit of items you can add to a slot, so you can now add up to 20 content items or snapshots to a slot at once.