I was attempting to copy a sheet with the python API, but every time I do so, it only includes the formatting (column names and number of rows), but I would like it to include the data. Is there any way I can do this? I have tried it with a template as well and the same thing happens it creates a new sheet but it doesn't have any of the data.
Edited code after the question was answered:
inc_list = ['data'] # you can add other parameters here, separated by a comma
response = ss_client.Sheets.copy_sheet(
sheetID, # sheet_id
ss_client.models.ContainerDestination({
'destination_type': 'folder', # folder, workspace, or home
'destination_id': folderID, # folder_id
'new_name': cellValue,
}),
include=inc_list
)