Hikka Docs Hikka Docs
EndpointsComments

Write Comment

PUT
/comments/{content_type}/{slug}

Path Parameters

content_type*string
Value in"collection" | "character" | "edit" | "article" | "person" | "anime" | "manga" | "novel"
slug*string

Header Parameters

auth?|
auth?|

Request Body

application/json

text*string
Length1 <= length <= 2048
parent?|
[key: string]?never

Response Body

application/json

application/json

curl -X PUT "https://api.hikka.io/comments/collection/string" \  -H "Content-Type: application/json" \  -d '{    "text": "string"  }'
{
  "replies": [],
  "total_replies": 0,
  "updated": 0,
  "created": 0,
  "author": {
    "reference": "c773d0bf-1c42-4c18-aec8-1bdd8cb0a434",
    "updated": 1686088809,
    "created": 1686088809,
    "description": "Hikka",
    "username": "hikka",
    "cover": "string",
    "active": true,
    "avatar": "string",
    "role": "string"
  },
  "parent": "string",
  "content_type": "string",
  "is_editable": true,
  "text": "string",
  "vote_score": 0,
  "reference": "string",
  "my_score": 0,
  "preview": {},
  "hidden": true,
  "depth": 0
}
{
  "message": "Example error message",
  "code": "example_error"
}