Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Insert table request is not able to copy already created table and paste it in another doc

Open
#18,690 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
ruby
Domain
api

Research direction

Start by reviewing the Google::Apis::DocsV1::Request examples and the batch_update_document call shown in the issue, then compare the insert_table fields with the Google Docs API request schema. Determine whether copying an existing table is supported by this client request; done means documenting the valid request shape or confirming the API limitation.

Written by the indexing model from the issue text.

Description

`requests = [
Google::Apis::DocsV1::Request.new(
insert_table: {
table: table, (Its not working, is it the right syntax?)
end_of_segment_location: {
segment_id: ''
}
}
)
]

Execute the batch update request

batch_update_request = Google::Apis::DocsV1::BatchUpdateDocumentRequest.new(
requests: requests
)

response = docs_service.batch_update_document(doc_id, batch_update_request)

requests = [
Google::Apis::DocsV1::Request.new(
insert_table: {
table: table,
end_of_segment_location: {
segment_id: ''
}
}
)
]

request = Google::Apis::DocsV1::Request.new(
insert_table: {
rows: 3, # Number of rows in the table
columns: 4, # Number of columns in the table
end_of_segment_location: {
segment_id: "" # Segment ID if applicable
}
}
)

I tried the above code as well but instead of copying the existing table, it creates a new one with broader width and no data present`

Dominant language
Ruby
Stars
2.9k
Forks
888
Avg merge
8m
Merged PRs (30d)
241

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from googleapis/google-api-ruby-client

All issues in googleapis/google-api-ruby-client

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.