CreateComment
Create Comment through the Comment service.
/api.v1.comment.CommentService/CreateComment Bearer requiredRequest
CreateCommentRequest
CreateCommentRequestapi.v1.comment.CreateCommentRequest6 fields
Create Comment Request message.
episodeIduint32Episode Id value.
replyToCommentIdoptionaluint32Reply To Comment Id value.
contentstringContent value.
timestampSecondsoptionalint32Timestamp Seconds value.
spoilerScopestringSpoiler Scope value.
languagestringLanguage value.
{
"episodeId": 1,
"replyToCommentId": 1,
"content": "Example content",
"timestampSeconds": 1,
"spoilerScope": "string",
"language": "de"
}Response
CreateCommentResponse
CreateCommentResponseapi.v1.comment.CreateCommentResponse1 fields
Create 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.