Sign in

Batch update document

documented

Applies one or more update requests to the specified document in a single operation. ([developers.google.com](https://developers.google.com/docs/api/reference/rest/v1/documents/batchUpdate))

POST /v1/documents/{documentId}:batchUpdateDocumentsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://docs.googleapis.com/v1/documents/{{$documentId}}:batchUpdate?key={{DOCS_API_KEY}}" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"requests":[{"insertText":{"location":{"index":{{$index}}},"text":"{{$text}}"}},{"updateTextStyle":{"range":{"startIndex":{{$startIndex}},"endIndex":{{$endIndex}}},"textStyle":{"bold":{{$bold}}},"fields":"bold"}}],"writeControl":{"requiredRevisionId":"{{$revisionId}}"}}' \
  # Source: https://developers.google.com/docs/api/reference/rest/v1/documents/batchUpdate
Batch update document · Google Docs · OpenIntegrations