/content mapping & automation
Push new site content via API
Now that your Content Library object is fully mapped and ready, it's time to push the content to your connected site using the API.
In this lesson, we’ll walk through how to send your updated Content Library object via API—replacing the placeholder content from your template with your new, structured content. This step is key to turning a generic connected template into a personalized, client-ready website.
API Reference
POST https://api.duda.co/api/sites/multiscreen/{site_name}/content
Update the data that exists within the content library. Once updated the data is ready for immediate use within the editor.
Note: You only need to pass the data fields you want to update and do not need to send the entire data object representing the whole content library.
Documentation:
Update Content Library
What happens after you push content
Once you send your mapped object to the Content Library via the API, it replaces the existing content in the Connected Data section. Any connected elements on the site will automatically update to reflect this new content.
The final step? Jump into the Duda Editor and adjust the theme colors and styling to align with your client’s branding. This is the finishing touch to ensure the content and design work together seamlessly.
Note
There are two key things to keep in mind:
Plan your data source: In real-world scenarios, you won’t be hardcoding this data—you’ll be pulling it from an actual source. That’s why mapping your object carefully is so important.
Connect your data:
The content you send is only useful if it’s connected to elements on the site. If it isn’t connected, it won’t appear—no matter how accurate your data is.
Important
This API call only updates the Connected Data (CMS) section within the Content Library. It
does not update any Collections
connected to the site. Collections are handled through a separate API call.
Don’t worry—we’ll walk through how to update those in the next lesson.