Method: spreadsheets.sheets.copyTo

將試算表中的單一試算表複製到其他試算表。傳回新建工作表的屬性。

HTTP 要求

POST https://sheets.googleapis.com/v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo

這個網址使用 gRPC 轉碼語法。

路徑參數

參數
spreadsheetId

string

要複製的工作表所屬的試算表 ID。

sheetId

integer

要複製的工作表 ID。

要求主體

要求主體的資料會採用以下結構:

JSON 表示法
{
  "destinationSpreadsheetId": string
}
欄位
destinationSpreadsheetId

string

要複製工作表的試算表 ID。

回應主體

如果成功,回應主體會包含 SheetProperties 的執行例項。

授權範圍

需要下列其中一種 OAuth 範圍:

  • https://www.googleapis.com/auth/drive
  • https://www.googleapis.com/auth/drive.file
  • https://www.googleapis.com/auth/spreadsheets

詳情請參閱授權指南