Comments

Update comment

patch/comments/{id}

Request

  • Base URL: https://api.yani.tv
  • URL: https://api.yani.tv/comments/{id}
  • Auth: none declared

Path parameters

idinteger required

Comment ID

Request body

reasoninteger

Reason

spoilerboolean

Add spoiler to whole comment

textstring

Comment text

Response

Success response

Example response

{
  "response": {
    "id": 122,
    "name": "nickname",
    "avatars": {
      "big": "https://example.com/big.webp",
      "full": "https://example.com/full.avif",
      "small": "https://example.com/small.webp"
    },
    "children_count": 12,
    "deleted_at": 0,
    "time": 123455644,
    "user_id": 1,
    "vote": 1,
    "roles": [
      "root"
    ],
    "text": "Comment text\n[ж]With BB-codes[/ж][з]striked text[/з][спойлер=\"Title\"]spoiler text[/спойлер]",
    "dislikes": 12,
    "likes": 13,
    "parent_id": 0,
    "item_data": {
      "title": "Anime title",
      "url": "anime-alias-123",
      "posters": {
        "small": "https://example.com/small.webp",
        "medium": "https://example.com/medium.webp",
        "big": "https://example.com/big.webp",
        "huge": "https://example.com/huge.webp",
        "fullsize": "https://example.com/fullsize.webp",
        "mega": "https://example.com/mega.webp"
      }
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.