Profile: container

Profile Schema

A container document is a document that contains other documents within an ordered layout list.

Structure

container documents must have a layout attribute which is represented as a list of link objects. This list is to be considered ordered by publishers, and may link to other CDS assets or documents.

The links in the layout array of container documents may not have rels.

Example container document

{
  "id": "12345",
  "profiles": [
    {
      "href": "/v1/profiles/container"
    },
    {
      "href": "/v1/profiles/document"
    }
  ],

  "layout": [
    {
      "href": "#/assets/5678"
    }
  ]
}

© 2024 npr