返回 Google Docs

將 Knoon AI 與 Google Docs (Google) 連接以自動化 AI 工作流程。

Replace the content in a Google Docs document between startIndex (inclusive) and endIndex (exclusive) with new text.
googleDocsUpdateContentRange
測試版
權限
  • https://www.googleapis.com/auth/drive.file
可選權限
  • https://www.googleapis.com/auth/drive
參數
名稱類型說明必填
documentIdfile Select the Google Docs document to update.是的
startIndexmustache Document start index (inclusive) of the range to update. Uses Docs API document index (UTF-16 code units).是的
endIndexmustache Document end index (exclusive) of the range to update. Must be greater than or equal to startIndex.是的
textmustache New text to insert at startIndex. If omitted or empty, the specified range will simply be deleted.
退貨
名稱類型說明
statusstring UPDATED or ERROR.
startIndexnumber The original start index used for the update.
oldEndIndexnumber The original end index used for the update.
newEndIndexnumber The new end index after inserting the replacement text (startIndex + inserted text length).
sensitive.documentIdstring ID of the document that was updated.