@kentico/kontent-management
Advanced tools
Changelog
2.1.0 (2022-03-10)
The upsertAsset
and addAsset
queries now use builder
that helps setting new asset's elements
property. Currently, only taxonomy
element is supported. You may need to update your syntax to following format:
client.addAsset()
.withData((builder) => {
return {
descriptions: [],
elements: [
builder.taxonomyElement({
element: {
codename: 'taxonomy-categories'
},
value: [
{
codename: 'coffee'
},
{
codename: 'brewing'
}
]
})
],
file_reference: {
id: 'x',
type: 'internal'
}
};
})
.toPromise();
Changelog
2.0.0 (2022-01-13)
Changelog
1.7.0 (2021-11-29)