js-webflow-api icon indicating copy to clipboard operation
js-webflow-api copied to clipboard

Publishing a site requires a domain id

Open gugahoi opened this issue 9 months ago • 1 comments

According to the docs and the webflow client, domain ids are not required however the API responds with a Bad Request Error and requires at least 1 domain id. Can this be clarified? Is it required or not?

API Docs: https://developers.webflow.com/data/reference/sites/publish Sample code in the api docs:

import { WebflowClient } from "webflow-api";

const client = new WebflowClient({ accessToken: "YOUR_ACCESS_TOKEN" });
await client.sites.publish("580e63e98c9a982ac9b8b741");
Image

gugahoi avatar Mar 11 '25 00:03 gugahoi

Hey there - apologies for the late reply, we will address this as a change in our openapi-spec to make either customDomains or publishToWebflowSubdomain as required (so no, a domain ID is technically not required, if you just want to publish to the webflow staging domain xyz.webflow.io)

zplata avatar Jun 24 '25 17:06 zplata