@kontent-ai/management-sdk
Advanced tools
Changelog
5.1.0 (2023-07-31)
Changelog
4.1.0 (2023-03-08)
Changelog
4.0.0 (2023-01-18)
workflow
in upsertLanguageVariant
query (#93)Updated way of using the upsertLanguageVariant
is:
import { ManagementClient } from '@kontent-ai/management-sdk';
const client = new ManagementClient({
environmentId: '<YOUR_PROJECT_ID>',
apiKey: '<YOUR_API_KEY>'
});
const response = await client
.upsertLanguageVariant()
.byItemCodename('x')
.byLanguageCodename('x')
.withData((builder) => {
return {
elements: [
builder.textElement({
element: {
codename: 'xElementCodename'
},
value: 'xText'
}),
],
workflow: {
step_identifier: {
codename: 'y'
},
workflow_identifier: {
codename: 'x'
}
}
}
})
.toPromise();