Back to Google Docs
Google / Google Docs
Update Content by Index Range
Replace the content in a Google Docs document between startIndex (inclusive) and endIndex (exclusive) with new text.
googleDocsUpdateContentRange
Permissions
  • https://www.googleapis.com/auth/drive.file
Optional permissions
There are no items to display.
Parameters
NameTypeDescriptionRequired
documentIdfile Select the Google Docs document to update.Yes
startIndexmustache Document start index (inclusive) of the range to update. Uses Docs API document index (UTF-16 code units).Yes
endIndexmustache Document end index (exclusive) of the range to update. Must be greater than or equal to startIndex.Yes
textmustache New text to insert at startIndex. If omitted or empty, the specified range will simply be deleted.No
Returns
NameTypeDescription
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.
Install In Tools

See how to install an app in your tool

Follow the quick walkthrough below to add marketplace apps into your tool flow.

Step 01
Open your tool setup
Start from the tool workspace where you want to add a new app.
Step 02
Go to tools and create button
Open the Tools page, then click the Create button to start adding a new app.
Step 03
Choose Internal or External work
Choose Internal or External work, then select an app action.
Step 04
Select app to install to Knoon
Pick the app you want to install to Knoon and complete the setup flow.
Step 05
Success!
The app has been installed successfully and is ready to use in your workflow.
Power your business with Knoon's Agentic AI today.
Join businesses already resolving thousands of customer inquiries and sales leads with Knoon.