REST Resource: replies
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Ressource: Antwort
Eine Antwort auf einen Kommentar zu einer Datei.
Für einige Ressourcenmethoden (z. B. replies.update
) ist eine replyId
erforderlich. Verwenden Sie die Methode replies.list
, um die ID für eine Antwort abzurufen.
JSON-Darstellung |
{
"id": string,
"kind": string,
"createdTime": string,
"modifiedTime": string,
"action": string,
"author": {
object (User )
},
"deleted": boolean,
"htmlContent": string,
"content": string
} |
Felder |
id |
string
Nur Ausgabe. Die ID der Antwort.
|
kind |
string
Nur Ausgabe. Gibt an, um welche Art von Ressource es sich handelt. Wert: der feste String "drive#reply" .
|
createdTime |
string
Nur Ausgabe. Die Uhrzeit, zu der die Antwort erstellt wurde (Datum und Uhrzeit im RFC 3339-Format).
|
modifiedTime |
string
Nur Ausgabe. Das Datum und die Uhrzeit der letzten Änderung der Antwort (RFC 3339-Datums-/Uhrzeitformat).
|
action |
string
Die Aktion, die mit der Antwort auf den übergeordneten Kommentar ausgeführt wurde. Gültige Werte sind:
|
author |
object (User )
Nur Ausgabe. Der Autor der Antwort. Die E-Mail-Adresse und die Berechtigungs-ID des Autors werden nicht ausgefüllt.
|
deleted |
boolean
Nur Ausgabe. Ob die Antwort gelöscht wurde. Eine gelöschte Antwort enthält keinen Inhalt.
|
htmlContent |
string
Nur Ausgabe. Der Inhalt der Antwort mit HTML-Formatierung.
|
content |
string
Der Nur-Text-Inhalt der Antwort. In diesem Feld wird der Inhalt festgelegt, während htmlContent angezeigt werden sollte. Dies ist beim Erstellen erforderlich, wenn keine action angegeben ist.
|
Methoden |
|
Erstellt eine Antwort auf einen Kommentar. |
|
Löscht eine Antwort. |
|
Ruft eine Antwort nach ID ab. |
|
Hier werden die Antworten auf einen Kommentar aufgeführt. |
|
Aktualisiert eine Antwort mit Patch-Semantik. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-25 (UTC).
[null,null,["Zuletzt aktualisiert: 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. |"]]