Content Delivery Api property expansion
# help-with-umbraco
d
Hi Umbraco people I have a content delivery query that isn't quite behaving like i am expecting it to. I have a body property that's a block grid. inside that block grid, i've added a component for a carousel, which takes a list of content items (articles). That's all fine, but in the delivery api response the properties of the articles aren't expanded. I have my query set to expand all. i have also tried to explicitly expand the property (possibly incorrectly). What is the right way to be able to expand these nested content properties? my query:
https://localhost/umbraco/delivery/api/v2/content/item/%2F?expand=properties%5B%24all%5D&fields=properties%5B%24all%5D
response:
Copy code
{
  "contentType": "home",
  "name": "Home",
  "createDate": "2024-12-17T14:50:53.517Z",
  "updateDate": "2025-02-26T10:28:03.157Z",
  "route": {
    "path": "/",
    "startItem": {
      "id": "351b21dc-5eb8-462a-8601-854fbfc50a45",
      "path": "home"
    }
  },
  "id": "351b21dc-5eb8-462a-8601-854fbfc50a45",
  "properties": {
    "metaTitle": null,
    "metaDescription": null,
    "metaKeywords": null,
    "ogTitle": null,
    "ogDescription": null,
    "ogImage": null,
    "body": {
      "gridColumns": 12,
      "items": [
        {
          "rowSpan": 1,
          "columnSpan": 12,
          "areaGridColumns": 12,
          "areas": [
            {
              "alias": "FullWidth",
              "rowSpan": 1,
              "columnSpan": 12,
              "items": [
                {
                  "rowSpan": 1,
                  "columnSpan": 9,
                  "areaGridColumns": 12,
                  "areas": [],
                  "content": {
                    "contentType": "multipleArticleCarousel",
                    "id": "67464e14-af10-4986-92d9-56e75461e2af",
                    "properties": {
                      "articles": [
                        {
                          "contentType": "article",
                          "name": "Test Article",
                          "createDate": "2025-01-20T12:26:07.017Z",
                          "updateDate": "2025-02-20T16:59:35.807Z",
                          "route": {
                            "path": "/football/boots/2025/01/test-article",
                            "startItem": {
                              "id": "351b21dc-5eb8-462a-8601-854fbfc50a45",
                              "path": "home"
                            }
                          },
                          "id": "6dff2f77-8851-4994-bdd5-a63b0eb6c13f",
                          "properties": {}
                        }
                      ]
                    }
                  },
                  "settings": null
                }
              ]
            }
          ],
          "content": {
            "contentType": "row",
            "id": "2d9718d5-12e4-4ac1-80f2-b7d1feec1746",
            "properties": {
              "backgroundColour": "#ffffff"
            }
          },
          "settings": null
        }
      ]
    },
    "categories": {
      "category": null,
      "subCategory": null
    }
  },
  "translations": {
    "aboutTheAuthor": "About the Author",
    "copySuccess": "Successfully copied",
    "copyToClipboard": "Copy to clipboard",
    "error": "Something went wrong",
    "linksAndInfo": "Links & Info",
    "readAllArticles": "Read all articles",
    "relatedStories": "Related stories",
    "writtenBy": "Written by"
  },
  "cultures": {
    "en-GB": {
      "path": "/",
      "startItem": {
        "id": "351b21dc-5eb8-462a-8601-854fbfc50a45",
        "path": "home"
      }
    }
  }
}
As you can see, the properties of Test Article is empty, but i need to get to image and summary properties in there. Thanks in advance 🙂
2 Views