UpdateComment
Update Comment through the Comment service.
/api.v1.comment.CommentService/UpdateComment Bearer requiredRequest
UpdateCommentRequest
UpdateCommentRequestapi.v1.comment.UpdateCommentRequest5 fields
Update Comment Request message.
commentIduint32Comment Id value.
contentstringContent value.
timestampSecondsoptionalint32Timestamp Seconds value.
spoilerScopestringSpoiler Scope value.
languagestringLanguage value.
{
"commentId": 1,
"content": "Example content",
"timestampSeconds": 1,
"spoilerScope": "string",
"language": "de"
}Response
UpdateCommentResponse
UpdateCommentResponseapi.v1.comment.UpdateCommentResponse1 fields
Update Comment Response message.
{
"data": {
"id": 1,
"episodeId": 1,
"authorId": 1,
"author": {
"id": 1,
"username": "fireanime_user",
"avatarUrl": "/anime/frieren"
},
"parentCommentId": 1,
"replyToCommentId": 1,
"replyTo": {
"id": 1,
"authorId": 1,
"authorUsername": "fireanime_user",
"excerpt": "string value"
},
"content": "Example content"
}
}Referenced models
3 nested message types
EpisodeCommentapi.v1.comment.EpisodeComment20 fields
Episode Comment message.
iduint32Id value.
episodeIduint32Episode Id value.
authorIduint32Author Id value.
parentCommentIdoptionaluint32Parent Comment Id value.
replyToCommentIdoptionaluint32Reply To Comment Id value.
contentstringContent value.
likeCountint32Like Count value.
replyCountint32Reply Count value.
isHiddenboolIs Hidden value.
languagestringLanguage value.
spoilerScopestringSpoiler Scope value.
timestampSecondsoptionalint32Timestamp Seconds value.
createdAtstringCreated At value.
updatedAtstringUpdated At value.
viewerHasLikedboolViewer Has Liked value.
canEditboolCan Edit value.
canDeleteboolCan Delete value.
permalinkstringPermalink value.
CommentReferenceapi.v1.comment.CommentReference4 fields
Comment Reference message.
iduint32Id value.
authorIduint32Author Id value.
authorUsernamestringAuthor Username value.
excerptstringExcerpt value.
Error handling
Common failure codes
unauthenticatedThe Bearer token is missing or invalid.
invalid_argumentThe request payload failed validation.
internalThe service could not complete the operation.