Skip to main content

replies

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

Overview

Namereplies
TypeResource
Idgoogleworkspace.drivev2.replies

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
authorobjectInformation about a Drive user. (id: User)
contentstringThe plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen).
createdDatestring (date-time)The date when this reply was first created.
deletedbooleanWhether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.
genoaAuthorobjectThe user who wrote this reply as a GenoaUser. (id: GenoaUser)
htmlContentstringHTML formatted content for this reply.
kindstringThis is always drive#commentReply. (default: drive#commentReply)
modifiedDatestring (date-time)The date when this reply was last modified.
replyIdstringThe ID of the reply.
verbstringThe action this reply performed to the parent comment. When creating a new reply this is the action to be perform tSo the parent comment. Possible values are: * resolve - To resolve a comment. * reopen - To reopen (un-resolve) a comment.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectfileId, commentId, replyIdincludeDeletedGets a reply.
listselectfileId, commentIdincludeDeleted, maxResults, pageTokenLists all of the replies to a comment.
insertinsertfileId, commentIdCreates a new reply to the given comment.
patchupdatefileId, commentId, replyIdUpdates an existing reply.
updatereplacefileId, commentId, replyIdUpdates an existing reply.
deletedeletefileId, commentId, replyIdDeletes a reply.

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
maxResultsinteger (int32)
pageTokenstring

SELECT examples

Gets a reply.

SELECT
author,
content,
createdDate,
deleted,
genoaAuthor,
htmlContent,
kind,
modifiedDate,
replyId,
verb
FROM googleworkspace.drivev2.replies
WHERE fileId = '{{ fileId }}' -- required
AND commentId = '{{ commentId }}' -- required
AND replyId = '{{ replyId }}' -- required
AND includeDeleted = '{{ includeDeleted }}'
;

INSERT examples

Creates a new reply to the given comment.

INSERT INTO googleworkspace.drivev2.replies (
data__replyId,
data__kind,
data__createdDate,
data__modifiedDate,
data__verb,
data__author,
data__deleted,
data__htmlContent,
data__content,
data__genoaAuthor,
fileId,
commentId
)
SELECT
'{{ replyId }}',
'{{ kind }}',
'{{ createdDate }}',
'{{ modifiedDate }}',
'{{ verb }}',
'{{ author }}',
{{ deleted }},
'{{ htmlContent }}',
'{{ content }}',
'{{ genoaAuthor }}',
'{{ fileId }}',
'{{ commentId }}'
RETURNING
author,
content,
createdDate,
deleted,
genoaAuthor,
htmlContent,
kind,
modifiedDate,
replyId,
verb
;

UPDATE examples

Updates an existing reply.

UPDATE googleworkspace.drivev2.replies
SET
data__replyId = '{{ replyId }}',
data__kind = '{{ kind }}',
data__createdDate = '{{ createdDate }}',
data__modifiedDate = '{{ modifiedDate }}',
data__verb = '{{ verb }}',
data__author = '{{ author }}',
data__deleted = {{ deleted }},
data__htmlContent = '{{ htmlContent }}',
data__content = '{{ content }}',
data__genoaAuthor = '{{ genoaAuthor }}'
WHERE
fileId = '{{ fileId }}' --required
AND commentId = '{{ commentId }}' --required
AND replyId = '{{ replyId }}' --required
RETURNING
author,
content,
createdDate,
deleted,
genoaAuthor,
htmlContent,
kind,
modifiedDate,
replyId,
verb;

REPLACE examples

Updates an existing reply.

REPLACE googleworkspace.drivev2.replies
SET
data__replyId = '{{ replyId }}',
data__kind = '{{ kind }}',
data__createdDate = '{{ createdDate }}',
data__modifiedDate = '{{ modifiedDate }}',
data__verb = '{{ verb }}',
data__author = '{{ author }}',
data__deleted = {{ deleted }},
data__htmlContent = '{{ htmlContent }}',
data__content = '{{ content }}',
data__genoaAuthor = '{{ genoaAuthor }}'
WHERE
fileId = '{{ fileId }}' --required
AND commentId = '{{ commentId }}' --required
AND replyId = '{{ replyId }}' --required
RETURNING
author,
content,
createdDate,
deleted,
genoaAuthor,
htmlContent,
kind,
modifiedDate,
replyId,
verb;

DELETE examples

Deletes a reply.

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