Product/components used and version/fix level:
c8y_version: 1018.0.240
Detailed explanation of the problem:
I am developing an Angular application using Web sdk in which I want to update an managed object i.e I want to update the fragment value of managed object like “c8y_Value”: true or false based on some condition
my fragment:
"c8y_Value": "false",
clicked(event,context){
if(event.target.checked){
console.log("toggle switch clicked")
console.log(context);
// api call to be made here
const partialUpdateObject: Partial<IManagedObject> = {
customFragment: 'Changed data',
name: 'Name'
};
(async () => {
const {data, res} = await this.inventory.update(partialUpdateObject);
})();
}else{
console.log("toggle switch unclicked");
console.log(context)
}
}
attached the code snippet for the same, what should be there in the custom fragment?