Skip to main content

replies

Creates, updates, deletes, gets or lists a replies resource.

Overview

Namereplies
TypeResource
Idgoogleworkspace.drivev3.replies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringOutput only. The ID of the reply.
actionstringThe action the reply performed to the parent comment. The supported values are: * resolve * reopen
assigneeEmailAddressstringOutput only. The email address of the user assigned to this comment. If no user is assigned, the field is unset.
authorobjectInformation about a Drive user. (id: User)
contentstringThe plain text content of the reply. This field is used for setting the content, while htmlContent should be displayed. This field is required by the create method if no action value is specified.
createdTimestring (date-time)The time at which the reply was created (RFC 3339 date-time).
deletedbooleanOutput only. Whether the reply has been deleted. A deleted reply has no content.
htmlContentstringOutput only. The content of the reply with HTML formatting.
kindstringOutput only. Identifies what kind of resource this is. Value: the fixed string "drive#reply". (default: drive#reply)
mentionedEmailAddressesarrayOutput only. A list of email addresses for users mentioned in this comment. If no users are mentioned, the list is empty.
modifiedTimestring (date-time)The last time the reply was modified (RFC 3339 date-time).

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectfileId, commentId, replyIdincludeDeletedGets a reply by ID. For more information, see Manage comments and replies.
listselectfileId, commentIdpageToken, includeDeleted, pageSizeLists a comment's replies. For more information, see Manage comments and replies.
createinsertfileId, commentIdCreates a reply to a comment. For more information, see Manage comments and replies.
updateupdatefileId, commentId, replyIdUpdates a reply with patch semantics. For more information, see Manage comments and replies.
deletedeletefileId, commentId, replyIdDeletes a reply. For more information, see Manage comments and replies.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
commentIdstring
fileIdstring
replyIdstring
includeDeletedboolean
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Gets a reply by ID. For more information, see Manage comments and replies.

SELECT
id,
action,
assigneeEmailAddress,
author,
content,
createdTime,
deleted,
htmlContent,
kind,
mentionedEmailAddresses,
modifiedTime
FROM googleworkspace.drivev3.replies
WHERE fileId = '{{ fileId }}' -- required
AND commentId = '{{ commentId }}' -- required
AND replyId = '{{ replyId }}' -- required
AND includeDeleted = '{{ includeDeleted }}'
;

INSERT examples

Creates a reply to a comment. For more information, see Manage comments and replies.

INSERT INTO googleworkspace.drivev3.replies (
data__modifiedTime,
data__htmlContent,
data__createdTime,
data__content,
data__author,
data__action,
data__id,
data__kind,
data__deleted,
fileId,
commentId
)
SELECT
'{{ modifiedTime }}',
'{{ htmlContent }}',
'{{ createdTime }}',
'{{ content }}',
'{{ author }}',
'{{ action }}',
'{{ id }}',
'{{ kind }}',
{{ deleted }},
'{{ fileId }}',
'{{ commentId }}'
RETURNING
id,
action,
assigneeEmailAddress,
author,
content,
createdTime,
deleted,
htmlContent,
kind,
mentionedEmailAddresses,
modifiedTime
;

UPDATE examples

Updates a reply with patch semantics. For more information, see Manage comments and replies.

UPDATE googleworkspace.drivev3.replies
SET
data__modifiedTime = '{{ modifiedTime }}',
data__htmlContent = '{{ htmlContent }}',
data__createdTime = '{{ createdTime }}',
data__content = '{{ content }}',
data__author = '{{ author }}',
data__action = '{{ action }}',
data__id = '{{ id }}',
data__kind = '{{ kind }}',
data__deleted = {{ deleted }}
WHERE
fileId = '{{ fileId }}' --required
AND commentId = '{{ commentId }}' --required
AND replyId = '{{ replyId }}' --required
RETURNING
id,
action,
assigneeEmailAddress,
author,
content,
createdTime,
deleted,
htmlContent,
kind,
mentionedEmailAddresses,
modifiedTime;

DELETE examples

Deletes a reply. For more information, see Manage comments and replies.

DELETE FROM googleworkspace.drivev3.replies
WHERE fileId = '{{ fileId }}' --required
AND commentId = '{{ commentId }}' --required
AND replyId = '{{ replyId }}' --required
;