gdocs_documents_batch_update
Apply multiple ordered edits—text, tables, images, styles—to a Google Doc in one request. Order edits back-to-front so content shifts keep indices valid.
Instructions
Apply a list of edits to a document. Each request sets exactly one kind of edit — insert_text, replace_all_text, update_text_style, insert_table and so on. Edits apply in order against a document that shifts as they do: when inserting at several indices, order the requests back-to-front so earlier insertions do not move the positions later ones refer to.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The edits to apply. | |
| documentId | Yes | The ID of the document to update. |