Method: drives.create
Permintaan HTTP
POST https://www.googleapis.com/drive/v3/drives
URL menggunakan sintaksis gRPC Transcoding.
Parameter kueri
Parameter |
requestId |
string
Wajib. ID, seperti UUID acak, yang secara unik mengidentifikasi permintaan pengguna ini untuk pembuatan idempoten drive bersama. Permintaan berulang oleh pengguna yang sama dan dengan ID permintaan yang sama akan menghindari pembuatan duplikat dengan berupaya membuat drive bersama yang sama. Jika drive bersama sudah ada, error 409 akan ditampilkan.
|
Isi permintaan
Isi permintaan memuat instance Drive
.
Isi respons
Jika berhasil, isi respons memuat instance Drive
yang baru dibuat.
Cakupan otorisasi
Memerlukan cakupan OAuth berikut ini:
https://www.googleapis.com/auth/drive
Beberapa cakupan dibatasi dan memerlukan penilaian keamanan agar aplikasi Anda dapat menggunakannya. Untuk informasi selengkapnya, lihat Panduan otorisasi.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-09-03 UTC.
[null,null,["Terakhir diperbarui pada 2024-09-03 UTC."],[[["Creates a new shared drive using a POST request to the specified endpoint."],["Requires a unique `requestId` to ensure idempotent creation and avoid duplicates."],["The request body should contain a `Drive` resource defining the shared drive properties."],["A successful response returns the newly created `Drive` resource."],["Requires authorization with the `https://www.googleapis.com/auth/drive` scope."]]],["This document details the process for creating a shared drive via an API. A `POST` request is sent to the specified URL. The request must include a unique `requestId` as a query parameter for idempotent creation. The request body requires a `Drive` instance. Upon success, a new `Drive` instance is returned in the response. The `https://www.googleapis.com/auth/drive` authorization scope is required for this operation.\n"]]