FIREANIME API
Browse API97 operations
POST

UpdateComment

Update Comment through the Comment service.

/api.v1.comment.CommentService/UpdateComment Bearer required
01

Request

UpdateCommentRequest

UpdateCommentRequestapi.v1.comment.UpdateCommentRequest5 fields

Update Comment Request message.

commentId
uint32

Comment Id value.

content
string

Content value.

timestampSecondsoptional
int32

Timestamp Seconds value.

spoilerScope
string

Spoiler Scope value.

language
string

Language value.

Request JSON
{
  "commentId": 1,
  "content": "Example content",
  "timestampSeconds": 1,
  "spoilerScope": "string",
  "language": "de"
}
02

Response

UpdateCommentResponse

UpdateCommentResponseapi.v1.comment.UpdateCommentResponse1 fields

Update Comment Response message.

data

Data value.

Example response
{
  "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"
  }
}
03

Referenced models

3 nested message types

EpisodeCommentapi.v1.comment.EpisodeComment20 fields

Episode Comment message.

id
uint32

Id value.

episodeId
uint32

Episode Id value.

authorId
uint32

Author Id value.

author

Author value.

parentCommentIdoptional
uint32

Parent Comment Id value.

replyToCommentIdoptional
uint32

Reply To Comment Id value.

replyTooptional

Reply To value.

content
string

Content value.

likeCount
int32

Like Count value.

replyCount
int32

Reply Count value.

isHidden
bool

Is Hidden value.

language
string

Language value.

spoilerScope
string

Spoiler Scope value.

timestampSecondsoptional
int32

Timestamp Seconds value.

createdAt
string

Created At value.

updatedAt
string

Updated At value.

viewerHasLiked
bool

Viewer Has Liked value.

canEdit
bool

Can Edit value.

canDelete
bool

Can Delete value.

permalink
string

Permalink value.

CommentAuthorapi.v1.comment.CommentAuthor3 fields

Comment Author message.

id
uint32

Id value.

username
string

Username value.

avatarUrl
string

Avatar Url value.

CommentReferenceapi.v1.comment.CommentReference4 fields

Comment Reference message.

id
uint32

Id value.

authorId
uint32

Author Id value.

authorUsername
string

Author Username value.

excerpt
string

Excerpt value.

04

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.