Streaming live at 10am (PST)

Site publishing endpoint not publishing all domains

Guys,

I’m using the api to publish ou domains under my website, but it will only publish WF’s default domain.

I hit /sites/:site_id/publish endpoint properly, passing an array with all my domains. The response is queued: true. WF default domain is instantly published, the other’s won’t publish at all.

Is this something that have occurred to anyone else before?

What does your API request look like? In testing, I made this request:

curl https://api.webflow.com/sites/566f78812c8c39a5650421fc/publish \
    -H "Authorization: Bearer $censored$" \
    -H 'accept-version: 1.0.0' \
    -H "Content-Type: application/json" \
    --data-binary $'{
      "domains": ["testing-default.$censored$.org", "testing-not-default.$censored$.org"]
    }'

and both domains were successfully published.

Hey Nathan, thanks for replying, mine looks like this

curl -XPOST -H 'Accept-Version: 1.0.0' 
-H 'Authorization: Bearer TOKEN' 
-H "Content-type: application/json" 
-d '{
    "domains": "[\"http:\\/\\/webflow.DOMAIN.com\",\"http:\\/\\/webflow2.DOMAIN.com\",\"http:\\/\\/webflow3.DOMAIN.com\",\"http:\\/\\/webflow4.DOMAIN.com\",\"http:\\/\\/supports-DOMAIN-project.webflow.io\"]"
}' 'https://api.webflow.com/sites/5be598e11b2491e029cdfa18/publish/'

It only publishes the webflow domain