使用 Smartsheet API 更新 smartsheet 文档中的行时出现错误。以前这一直有效,所以我认为最近在导致此错误的 smartsheet api 中可能发生了一些变化,但我找不到任何支持该错误的 smartsheet 文档。错误是:
Error Code: 1235 - Value is not supported for this column type. Use objectValue instead. Ref ID: <refIdHere>
根据 Smartsheet API 文档,objectValue 用于 MULTI_PICKLIST。我没有在我的 smartsheet 中使用任何 MULTI_PICKLIST,只是使用了 PICKLIST、DATE、CHECKBOX、TEXT_NUMBER。
发送到 PUT https://api.smartsheet.com/2.0/sheets/sheetid/rows的正确格式是什么?这是我一直在使用的格式,直到几周前才有效。列是 PICKLIST、DATE、CHECKBOX 还是 TEXT_NUMBER 都没有关系,这种格式是有效的。现在更新 PICKLIST 列时失败。另外, RefId 参考什么?
"id": "<sheetId>",
"cells": [{
"columnId": 4714233383413635,
"value": 123456
}, {
"columnId": 5840133290256265,
"value": "Africa"
}, {
"columnId": 5277183336834945,
"value": "French"
}, {
"columnId": 8654883057362825,
"value": "2020-09-04"
}]
}]```