Releases: webflow/js-webflow-api
Releases · webflow/js-webflow-api
v3.2.0
What's Changed
- 🌿 Fern Regeneration -- August 5, 2025 by @fern-api[bot] in #278
- New: Ability to get raw response (including headers) from an API call by appending SDK function call with
.withRawResponse(). Example:
{
"data": { "sites": [] },
"rawResponse": {
"headers": {},
"redirected": false,
"status": 200,
"statusText": "OK",
}
}- New: For POST/PATCH API calls to CMS Items, you can pass in a
skipInvalidFilesboolean flag to skip any potentially problematic file attachments on CMS items and continue processing the request
client.collections.items.createItem(collectionId, {
skipInvalidFiles: true,
// ...
})-
New: You can pass in a
branchIdinto the request for updating Component content/properties on branched pages.- E.g.,
client.components.updateContent(siteId, componentId, { localeId: "my-secondary-locale-id", branchId: "my-branch-id" }) - the
branchIdfor a given page can be retrieved via the List Pages API (client.pages.list()) if a page has a branch
- E.g.,
-
New: Filter by
lastPublishedtimestamps when listing CMS Items. Example:
await wf.collections.items.listItems(collectionId, { lastPublished: {
gte: new Date("2024-01-01T00:00:00Z"),
}});- New: Added
validationsproperty in the response of the Get Collection Details API (client.collections.get())
Fixes
- Constrain request payload in
pages.updatePageSettings()API to only include page fields that can be updated - Various optional type inconsistencies to match OpenAPI specification
- Incorrect field type in
ProductFieldData.categories->category
Maint
- Upgraded Fern generator to v1.7.2
Full Changelog: v3.1.4...v3.2.0
v3.1.4
v3.1.3
What's Changed
- 🌿 Fern Regeneration -- May 7, 2025 by @fern-api in #258
- New: Comments APIs
- Also a new
comment_createdwebhook to get notified on new comments and replies
- Also a new
- Added: Additional DOM nodes returned from Get Page Content / Get Component Content APIs for localization. Also available for updating via the Update Page Content / Update Component Content APIs
text-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 node
- New: (Enterprise) Well-known file management APIs
- New: (Enterprise) Workspace audit log API
Fixed
- Delete CMS Items API -
itemsis now required in the request body (staged and live endpoints) - Create Collection Field API -
Videofield type has been corrected toVideoLink - Create Product and SKU API -
productandskuare now required in the request body
Full Changelog: v3.1.2...v3.1.3
v3.1.2
What's Changed
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: v3.1.1...v3.1.2
v3.1.1
What's Changed
- New: Add hmac verification method to JS SDK by @KeithRyanWong in #214
- 🌿 Fern Regeneration -- March 13, 2025 by @fern-api in #228
- New: Can add collection fields when creating a collection
- New: Can create more types of fields in Collections (i.e. Option, Ref, Multiref)
- New: List Form Submissions by Site (and filter by
formElementId) - New: Delete Form Submission
- Added:
lastPublishedparameter added tocustomDomainsobject returned when getting Site data - New: (Enterprise) New APIs for working with
robots.txtfiles
Fixed
- Fix: When deleting CMS items live, using
idwhen declaringitemsin the request payload instead ofitemIdto match API expectations
New Contributors
- @KeithRyanWong made their first contribution in #214
Full Changelog: v3.1.0...v3.1.1
v3.1.0
What's Changed
- 🌿 Fern Regeneration -- December 12, 2024 by @fern-api in #189
- 🌿 Fern Regeneration -- January 13, 2025 by @fern-api in #204
- New: Component APIs for localizing Component static content and properties
- New: (Enterprise) Site Redirects APIs
- New: (Enterprise) Get Site Plan API
- New: (Enterprise) Create, Update, Delete Site APIs
- Feature: Added
lastPublishedproperty to Get Custom Domains API and List Sites/Get Site API
Full Changelog: v3.0.1...v3.1.0
v3.0.1
v3.0.0
Please see MIGRATION.md for changes and how to upgrade.