尝试将数据追加到带有标题包括冒号的工作表时,INVALID_ARGUMENT

时间:2019-05-22 13:11:18

标签: google-sheets-api

我使用API​​ Explorer将数据附加到标题为“ 17:30”的工作表中并收到错误消息。 工作表标题不包含冒号时的相同请求成功执行。

如何使用此类工作表标题?

POST https://sheets.googleapis.com/v4/spreadsheets/FILE_ID/values/'17:30'!A1:append?valueInputOption=USER_ENTERED

{
 "majorDimension": "ROWS",
 "values": [
  [
   "ID",
   "SKU",
   "NAME",
   "QTY"
  ]
 ],
 "range": "'17:30'!A1"
}
{
 "error": {
  "code": 400,
  "message": "Requested writing within range ['17:30'!A1], but tried writing to column [B]",
  "status": "INVALID_ARGUMENT"
 }
}

0 个答案:

没有答案