Method: spreadsheets.create
Tworzy arkusz kalkulacyjny i zwraca nowo utworzony arkusz kalkulacyjny.
Żądanie HTTP
POST https://sheets.googleapis.com/v4/spreadsheets
Adres URL używa składni transkodowania gRPC.
Treść żądania
Treść żądania zawiera wystąpienie elementu Spreadsheet
.
Treść odpowiedzi
Jeśli operacja się uda, treść odpowiedzi będzie zawierała nowo utworzoną instancję Spreadsheet
.
Zakresy autoryzacji
Wymaga jednego z tych zakresów OAuth:
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/drive.file
https://www.googleapis.com/auth/spreadsheets
Więcej informacji znajdziesz w przewodniku po autoryzacji.
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-09-05 UTC.
[null,null,["Ostatnia aktualizacja: 2024-09-05 UTC."],[[["Creates a new Google Spreadsheet using the provided data."],["Sends an HTTP POST request to `https://sheets.googleapis.com/v4/spreadsheets`."],["Requires authorization with specific OAuth scopes like `https://www.googleapis.com/auth/spreadsheets` or similar."],["Returns the newly created spreadsheet data in the response."]]],["A `POST` request is sent to `https://sheets.googleapis.com/v4/spreadsheets` to create a new spreadsheet. The request body must contain a `Spreadsheet` instance. Upon success, the response body returns the newly created `Spreadsheet` instance. This action requires one of the following OAuth scopes for authorization: `drive`, `drive.file`, or `spreadsheets`. The URL follows gRPC Transcoding syntax.\n"]]