{"record":{"id":"b98018ad445350f7","repo":"siyuan-note/siyuan","slug":"api-av-batchsetattributeviewblockattrs-paramete","errorCode":null,"errorMessage":"[/api/av/batchSetAttributeViewBlockAttrs] parameter [rowID] is deprecated, visit [https://github.com/siyuan-note/siyuan/issues/15727] for details","messagePattern":"\\[/api/av/batchSetAttributeViewBlockAttrs\\] parameter \\[rowID\\] is deprecated, visit \\[https://github\\.com/siyuan-note/siyuan/issues/15727\\] for details","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"kernel/model/attribute_view.go","lineNumber":7598,"sourceCode":"func BatchUpdateAttributeViewCells(tx *Transaction, avID string, values []any) (err error) {\n\tattrView, err := av.ParseAttributeView(avID)\n\tif err != nil {\n\t\treturn\n\t}\n\n\tfor _, value := range values {\n\t\tv := value.(map[string]any)\n\t\tkeyID := v[\"keyID\"].(string)\n\t\tvar itemID string\n\t\tif _, ok := v[\"itemID\"]; ok {\n\t\t\titemID = v[\"itemID\"].(string)\n\t\t} else if _, ok := v[\"rowID\"]; ok {\n\t\t\t// TODO 该参数将于 2026 年 12 月 1 日后删除\n\t\t\titemID = v[\"rowID\"].(string)\n\t\t\tmsg := fmt.Sprintf(\"[%s] parameter [%s] is deprecated, visit [https://github.com/siyuan-note/siyuan/issues/15727] for details\",\n\t\t\t\t\"/api/av/batchSetAttributeViewBlockAttrs\", \"rowID\")\n\t\t\tlogging.LogWarn(msg)\n\t\t\terr = errors.New(msg)\n\t\t\treturn\n\t\t}\n\t\tvalueData := v[\"value\"]\n\t\t_, err = updateAttributeViewValue(tx, attrView, keyID, itemID, valueData, false)\n\t\tif err != nil {\n\t\t\treturn\n\t\t}\n\t}\n\tregenAttrViewGroups(attrView)\n\tif err = av.SaveAttributeView(attrView); err != nil {\n\t\treturn\n\t}\n\trefreshRelatedSrcAvs(avID, tx)\n\treturn\n}\n\nfunc UpdateAttributeViewCell(tx *Transaction, avID, keyID, itemID string, valueData any) (val *av.Value, err error) {\n\tattrView, err := av.ParseAttributeView(avID)","sourceCodeStart":7580,"sourceCodeEnd":7616,"githubUrl":"https://github.com/siyuan-note/siyuan/blob/251596fc0de2f9528c00c224252fd073a99973f4/kernel/model/attribute_view.go#L7580-L7616","documentation":"Error \"[/api/av/batchSetAttributeViewBlockAttrs] parameter [rowID] is deprecated, visit [https://github.com/siyuan-note/siyuan/issues/15727] for details\" thrown in siyuan-note/siyuan.","triggerScenarios":"A plugin or external integration calls /api/av/batchSetAttributeViewBlockAttrs with the deprecated [rowID] parameter.","commonSituations":"Occurs when a plugin or integration calls /api/av/batchSetAttributeViewBlockAttrs using the deprecated rowID parameter instead of itemID.","solutions":["Use the parameter [itemID] instead of the deprecated [rowID] when calling /api/av/batchSetAttributeViewBlockAttrs.","See https://github.com/siyuan-note/siyuan/issues/15727 for the migration details."],"exampleFix":"POST /api/av/batchSetAttributeViewBlockAttrs with {\"avID\": \"...\", \"itemID\": \"...\", \"attrs\": {...}} instead of rowID.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"251596fc0de2f9528c00c224252fd073a99973f4","analyzedAt":"2026-08-12T21:18:37.123Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}