Hi @Hedg0305 . For the Dynamic zone, you need to define the name of dynamic zone. you can try to populate using Deeply populate a dynamic zone with 2 components section in below docs.
If this doesn’t work, you can use the solution provided here
opened 11:38AM - 07 Dec 21 UTC
closed 09:23PM - 08 Dec 21 UTC
<!--
Hello 👋 Thank you for submitting an issue.
Before you start, please mak… e sure your issue is understandable and reproducible.
To make your issue readable make sure you use valid Markdown syntax.
https://guides.github.com/features/mastering-markdown/
Please ensure you have also read and understand the contributing guide.
https://github.com/strapi/strapi/blob/master/CONTRIBUTING.md#reporting-an-issue
-->
## Bug report
### Describe the bug
[v4]
I'm trying to setup strapi for our marketing website. I need to create a blog page with `title`, `featureimage`(Media) and `contents` (dynamic zones).
I need to fetch the all the fields including title, `featureimage` and dynamic zone `contents`.
But I tried all the possibilities for populating mention in [this doc](https://docs.strapi.io/developer-docs/latest/developer-resources/database-apis-reference/rest-api.html#relations-population) but everything is in vain.
Am I missing something ??
### Expected behavior
The GET api should returns as follows:
```json
"data": [
{
"id": 1,
"attributes": {
"title": "Test Article",
// Media input
"featuredimage": {
"id": 1,
"alt": "",
"media": {
"data": [
{
"id": 1,
"attributes": {
"name": "17520.jpg",
"formats": {
// ...
},
// ...
}
}
]
},
// Dynamic Zone
"content": [
{
"id": 1,
"__component": "blogpost.image"
},
{
"id": 16,
"__component": "blogpost.richtext",
"value": "this is something fishy"
}
]
}
],
"meta": {
// ...
}
```
### System
- Node.js version: v12
- NPM version:
- Strapi version: v4
- Database: Postgres (Docker)
- Operating system: OS X