Create new asset
“LinkedFolders” are mandatory for new asset. “PropertyValues” are optional.
{
"Name": "asset name", // saving name text as default value
"Description": {
"fi": "asset Finnish description" // saving description for Finnish language
},
"LinkedFolders": [
"bKx2"
],
"PropertyValues": [
{
"FieldIdentifier": "TextPropertyFieldKey",
"Value": "PropertyFieldValue"
},
{
"FieldIdentifier": "CheckBoxKey",
"Value": "CheckBox1_Option1"
}
]
}
Save existing asset
Below is the example to update the asset name and adding one more number type property field to the existing asset.
if Id = 0 or not defined then asset is saved as new asset.
{
"Id": "asset Key",
"Name": {
"en": "updatedName",
"fi": "FinnishText"
},
"PropertyValues": [
{
"FieldIdentifier": "NumberTypePropertyFieldKey",
"Value": 5
}
]
}
Post your comment on this topic.