So I have an API/Webhook Set up for a client that publishes their Real estate listings into the CMS.
Data flow is:
- They publish property manually in their DB.
- Webhook is sent to my worker.
- Worker transforms & Publishes it into webflow CMS (it is now “Staged for Publish”).
However, in order for the CMS item to be fully published on the website I must now publish my webflow site.
I have a cron job set up to publish the website every 4 hours. It works fine. However my staging/development site cannot be published via the API as it doesn’t fall under the “customDomain” value. Nor does it seem to have an ID that I can use.
Essentially all website domains need to be published at the same time/all must be in sync. Otherwise I will get this error when adding in CMS items via the API - 409:
“message”: “Conflict: Site is published to multiple domains at different times”.
TLDR: Automation is broken by the fact that:
A. Website must be Published Manually so that staging lines up with production.
B. It doesn’t seem possible to fully publish CMS items using the API, you can only stage them for publishing. Which requires A
Is this an existing issue that is going to be fixed? Or am I missing something from the webflow docs? I get the feeling I am missing something.
Any advice/work-around would be much appreciated!