REST Resource: replies
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Risorsa: risposta
Una risposta a un commento su un file.
Alcuni metodi delle risorse (ad esempio replies.update
) richiedono un replyId
. Utilizza il metodo replies.list
per recuperare l'ID di una risposta.
Rappresentazione JSON |
{
"id": string,
"kind": string,
"createdTime": string,
"modifiedTime": string,
"action": string,
"author": {
object (User )
},
"deleted": boolean,
"htmlContent": string,
"content": string
} |
Campi |
id |
string
Solo output. L'ID della risposta.
|
kind |
string
Solo output. Identifica il tipo di risorsa. Valore: la stringa fissa "drive#reply" .
|
createdTime |
string
Solo output. L'ora in cui è stata creata la risposta (data e ora RFC 3339).
|
modifiedTime |
string
Solo output. L'ultima volta che la risposta è stata modificata (data e ora RFC 3339).
|
action |
string
L'azione eseguita dalla risposta al commento principale. I valori validi sono:
|
author |
object (User )
Solo output. L'autore della risposta. L'indirizzo email e l'ID autorizzazione dell'autore non verranno compilati.
|
deleted |
boolean
Solo output. Indica se la risposta è stata eliminata. Una risposta eliminata non ha contenuti.
|
htmlContent |
string
Solo output. Il contenuto della risposta con formattazione HTML.
|
content |
string
Il contenuto in testo normale della risposta. Questo campo viene utilizzato per impostare i contenuti, mentre dovrebbe essere visualizzato htmlContent . Questo valore è obbligatorio per le operazioni di creazione se non viene specificato action .
|
Metodi |
|
Crea una risposta a un commento. |
|
Elimina una risposta. |
|
Riceve una risposta per ID. |
|
Elenca le risposte a un commento. |
|
Aggiorna una risposta con la semantica della patch. |
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[null,null,["Ultimo aggiornamento 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. |"]]