REST Resource: replies
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Resource: Balasan
Balasan atas komentar di file.
Beberapa metode resource (seperti replies.update
) memerlukan replyId
. Gunakan metode replies.list
untuk mengambil ID balasan.
Representasi JSON |
{
"id": string,
"kind": string,
"createdTime": string,
"modifiedTime": string,
"action": string,
"author": {
object (User )
},
"deleted": boolean,
"htmlContent": string,
"content": string
} |
Kolom |
id |
string
Hanya output. ID balasan.
|
kind |
string
Hanya output. Mengidentifikasi jenis resource ini. Nilai: string tetap "drive#reply" .
|
createdTime |
string
Hanya output. Waktu pembuatan balasan (tanggal-waktu RFC 3339).
|
modifiedTime |
string
Hanya output. Terakhir kali balasan diubah (waktu tanggal RFC 3339).
|
action |
string
Tindakan yang dilakukan balasan terhadap komentar induk. Nilai yang valid adalah:
|
author |
object (User )
Hanya output. Penulis balasan. Alamat email dan ID izin penulis tidak akan diisi.
|
deleted |
boolean
Hanya output. Apakah balasan telah dihapus. Balasan yang dihapus tidak memiliki konten.
|
htmlContent |
string
Hanya output. Konten balasan dengan pemformatan HTML.
|
content |
string
Konten teks biasa dari balasan. Kolom ini digunakan untuk menetapkan konten, sedangkan htmlContent harus ditampilkan. Ini diperlukan saat pembuatan jika tidak ada action yang ditentukan.
|
Metode |
|
Membuat balasan untuk komentar. |
|
Menghapus balasan. |
|
Mendapatkan balasan berdasarkan ID. |
|
Mencantumkan balasan komentar. |
|
Memperbarui balasan dengan semantik patch. |
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 2025-07-25 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-25 UTC."],[],[],null,["# REST Resource: replies\n\n- [Resource: Reply](#Reply)\n - [JSON representation](#Reply.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Reply\n---------------\n\nA reply to a comment on a file.\n\nSome resource methods (such as `replies.update`) require a `replyId`. Use the `replies.list` method to retrieve the ID for a reply.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"id\": string, \"kind\": string, \"createdTime\": string, \"modifiedTime\": string, \"action\": string, \"author\": { object (/workspace/drive/api/reference/rest/v3/User) }, \"deleted\": boolean, \"htmlContent\": string, \"content\": string } ``` |\n\n| Fields ||\n|----------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `id` | `string` Output only. The ID of the reply. |\n| `kind` | `string` Output only. Identifies what kind of resource this is. Value: the fixed string `\"drive#reply\"`. |\n| `createdTime` | `string` Output only. The time at which the reply was created (RFC 3339 date-time). |\n| `modifiedTime` | `string` Output only. The last time the reply was modified (RFC 3339 date-time). |\n| `action` | `string` The action the reply performed to the parent comment. Valid values are: - `resolve` - `reopen` |\n| `author` | `object (`[User](/workspace/drive/api/reference/rest/v3/User)`)` Output only. The author of the reply. The author's email address and permission ID will not be populated. |\n| `deleted` | `boolean` Output only. Whether the reply has been deleted. A deleted reply has no content. |\n| `htmlContent` | `string` Output only. The content of the reply with HTML formatting. |\n| `content` | `string` The plain text content of the reply. This field is used for setting the content, while `htmlContent` should be displayed. This is required on creates if no `action` is specified. |\n\n| Methods ------- ||\n|---------------------------------------------------------------------|---------------------------------------|\n| ### [create](/workspace/drive/api/reference/rest/v3/replies/create) | Creates a reply to a comment. |\n| ### [delete](/workspace/drive/api/reference/rest/v3/replies/delete) | Deletes a reply. |\n| ### [get](/workspace/drive/api/reference/rest/v3/replies/get) | Gets a reply by ID. |\n| ### [list](/workspace/drive/api/reference/rest/v3/replies/list) | Lists a comment's replies. |\n| ### [update](/workspace/drive/api/reference/rest/v3/replies/update) | Updates a reply with patch semantics. |"]]