Updating a Collection Types Dynamic Zones with REST API

I’m trying to update the components of a dynamic zone, on a collection type.

What I would like to do is:

  • Update a specific component of the dynamic zone
  • Add a new component to the dynamic zone

However, when I try to add a new component, it overrides the current ones. If I try to send all the current components back, with the new one, it simply fails becasuse of key/values like id, documentId etc.

Am I missing something here?

This topic has been created from a Discord post (1291746005313654784) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

Yea you need to remove id’s

And give it back whole array

Maybe you can try also connect disconnect

The way the components handled by default they are recreated

Does this also count for if a component has a media attached to it?

I mean, does it count for the media attached to it. Do I need to remove its id?

No I think you need to remove only component ids

Aight thanks I’ll try that :slightly_smiling_face:

To update, I had to remove the documentId from the media as well. However that solved it :slightly_smiling_face: