REST Resource: replies
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資源:回覆
回覆檔案上的留言。
部分資源方法 (例如 replies.update
) 需要 replyId
。使用 replies.list
方法擷取回覆的 ID。
JSON 表示法 |
{
"id": string,
"kind": string,
"createdTime": string,
"modifiedTime": string,
"action": string,
"author": {
object (User )
},
"deleted": boolean,
"htmlContent": string,
"content": string
} |
欄位 |
id |
string
僅供輸出。回覆的 ID。
|
kind |
string
僅供輸出。表示資源的種類。值:固定字串 "drive#reply" 。
|
createdTime |
string
僅供輸出。回覆的建立時間 (RFC 3339 日期時間)。
|
modifiedTime |
string
僅供輸出。回覆上次修改的時間 (RFC 3339 日期時間)。
|
action |
string
回覆父項留言的動作。有效值如下:
|
author |
object (User )
僅供輸出。回覆的作者。系統不會填入作者的電子郵件地址和權限 ID。
|
deleted |
boolean
僅供輸出。回覆是否已刪除。已刪除的回覆沒有內容。
|
htmlContent |
string
僅供輸出。回覆內容,採用 HTML 格式。
|
content |
string
回覆的純文字內容。這個欄位可用於設定內容,但應顯示 htmlContent 。如果未指定 action ,則這是建立時的必要項目。
|
方法 |
|
建立回覆留言。 |
|
刪除回覆。 |
|
依 ID 取得回覆。 |
|
列出留言的回覆。 |
|
使用 patch 語義更新回覆。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],[],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. |"]]