REST Resource: replies
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
リソース: Reply
ファイルのコメントへの返信。
一部のリソース メソッド(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 Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 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. |"]]