js-webflow-api
js-webflow-api copied to clipboard
Publishing a site requires a domain id
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");
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)