I am trying change the value of a property of an asset using tabdem api. I am using mutate method provided in the tandem api but I'm unable to find how to change property value. It is asking key and value as argument for query param but I don't what yo give and from to fetch that values.
Please guide me as how to change the properties values using this method.
[enter image description here](https://i.sstatic.net/DYOqw.jpg)
I tried to find the values in the facility but I am not sure from I should get the property value in the facility.
When using mutate
endpoint you need to pass three inputs via payload.:
i
means upsert = both create and update)The property family and column can be obtained from schema. Use only properties which are part of applied classification.
Here is sample payload:
{
"keys": [
"IOURj_4LSP2Aon3zJE5quQAgVYM"
],
"muts": [
[ "i", "z", "1hw", "P010" ]
],
"desc": "Update properties"
}
Note that size of keys and muts arrays should be same. You can update multiple elements in one call. In case when you want to modify multiple properties of same element then use same key multiple times.
You may want to check this example.