Bugfix release for the previous version.
Adds a function that agents can use to create page clients to manage page-specific data.
Full Changelog: https://github.com/webflow/js-webflow-api/compare/v3.3.0...v3.3.1
Full Changelog: https://github.com/webflow/js-webflow-api/compare/v3.2.1...v3.3.0
sites resource group, which also means these APIs need a Site ID passed in as the first parameter
client.sites.forms.listSubmissionBySite(siteId: string)
client.forms.listSubmissionBySite() APIelementId to filter submissions by a formElementIdclient.sites.forms.listSubmissions(siteId: string, formId: string)
client.forms.listSubmissions() APIclient.sites.forms.getSubmission(siteId: string, formSubmissionId: string)
client.forms.getSubmission() APIclient.sites.forms.deleteSubmission(siteId: string, formSubmissionId: string)
client.forms.deleteSubmission() APIclient.sites.forms.updateSubmission(siteId: string, formSubmissionId: string)
client.forms.updateSubmission() APIAssetVariant typeFull Changelog: https://github.com/webflow/js-webflow-api/compare/v3.2.1...v3.3.0-beta
offset and limit pagination request parameters in the Assets .list() APItrack-inventory and quantity from SkuFieldData typeFull Changelog: https://github.com/webflow/js-webflow-api/compare/v3.2.0...v3.2.1
.withRawResponse(). Example:{
"data": { "sites": [] },
"rawResponse": {
"headers": {},
"redirected": false,
"status": 200,
"statusText": "OK",
}
}
skipInvalidFiles boolean flag to skip any potentially problematic file attachments on CMS items and continue processing the requestclient.collections.items.createItem(collectionId, {
skipInvalidFiles: true,
// ...
})
New: You can pass in a branchId into the request for updating Component content/properties on branched pages.
client.components.updateContent(siteId, componentId, { localeId: "my-secondary-locale-id", branchId: "my-branch-id" })branchId for a given page can be retrieved via the List Pages API (client.pages.list()) if a page has a branchNew: Filter by lastPublished timestamps when listing CMS Items. Example:
await wf.collections.items.listItems(collectionId, { lastPublished: {
gte: new Date("2024-01-01T00:00:00Z"),
}});
validations property in the response of the Get Collection Details API (client.collections.get())pages.updatePageSettings() API to only include page fields that can be updatedProductFieldData. categories -> categoryFull Changelog: https://github.com/webflow/js-webflow-api/compare/v3.1.4...v3.2.0
isMembersOnly property from Page typeFull Changelog: https://github.com/webflow/js-webflow-api/compare/v3.1.3...v3.1.4
comment_created webhook to get notified on new comments and repliestext-input - Update placeholder text on a text input nodeselect - Update choices on a select nodesubmit-button - Update text and waiting message on a submit button nodesearch-input - Update text on a search button nodeitems is now required in the request body (staged and live endpoints)Video field type has been corrected to VideoLinkproduct and sku are now required in the request bodyFull Changelog: https://github.com/webflow/js-webflow-api/compare/v3.1.2...v3.1.3
Usage (docs coming soon):
await client.assets.utilities.createAndUpload(siteId, {
fileName: "myimage.jpeg",
file: "https://fastly.picsum.photos/id/351/200/300.jpg?hmac=OSQYmRI8IZkaMcC4ERotpBhe0AymVYajIIKPJFDzGBY",
});
Full Changelog: https://github.com/webflow/js-webflow-api/compare/v3.1.1...v3.1.2
formElementId)lastPublished parameter added to customDomains object returned when getting Site datarobots.txt filesid when declaring items in the request payload instead of itemId to match API expectationsFull Changelog: https://github.com/webflow/js-webflow-api/compare/v3.1.0...v3.1.1
lastPublished property to Get Custom Domains API and List Sites/Get Site APIFull Changelog: https://github.com/webflow/js-webflow-api/compare/v3.0.1...v3.1.0
fieldData for CMS Item creationid optional in CMS Item update requestsFull Changelog: https://github.com/webflow/js-webflow-api/compare/v3.0.0...v3.0.1
Please see MIGRATION.md for changes and how to upgrade.
Full Changelog: https://github.com/webflow/js-webflow-api/compare/v2.4.2...v2.5.0
Full Changelog: https://github.com/webflow/js-webflow-api/compare/v2.4.1...v2.4.2
Full Changelog: https://github.com/webflow/js-webflow-api/compare/v2.4.0...v2.4.1
id to the CollectionItem request in createItemLive(), createItemForMultipleLocales()fieldData when creating/updating CMS Items for custom fieldscreateItem() and createItemLive() correctly return the newly created CMS ItempublishItem() correctly returns payload with publishedItemIdspublishSite() correctly returns expected payloadv0.26.0-rc2 to v0.40.1Full Changelog: https://github.com/webflow/js-webflow-api/compare/v2.3.6...v2.4.0
Full Changelog: https://github.com/webflow/js-webflow-api/compare/v2.3.3...v2.3.6
Full Changelog: https://github.com/webflow/js-webflow-api/compare/v2.3.2...v2.3.3