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
skipInvalidFiles
boolean 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
branchId
into 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
branchId
for 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
lastPublished
timestamps when listing CMS Items. Example:
await wf.collections.items.listItems(collectionId, { lastPublished: {
gte: new Date("2024-01-01T00:00:00Z"),
}});
- New: Added
validations
property 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