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 获取回复。 |
|
列出评论的回复。 |
|
使用补丁语义更新回复。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):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. |"]]