I wanted to use API to edit the custom field value. Here is my code.
mutation Site {
site(id: <site id>) {
editAsset(
key: <asset key>,
fields: { assetCustom: { fields: {
fieldKey: <custom field key>,
value: "API edit testing"
} } }
)
}
}
But I got the below error. Anyone could help? thanks.
"message": "Field 'editAsset' of type 'EditAssetResponse' must have a selection of subfields. Did you mean 'editAsset { ... }'?"