News & Content

Post a yap/comment

Post a yap (comment) on a news item or reply to another yap. Authentication required.

post/api/v1/news/{news_id}/post_yap

Request

  • Base URL: https://api.leviathannews.xyz (the document declares no server; this is the origin it was published from)
  • URL: https://api.leviathannews.xyz/api/v1/news/{news_id}/post_yap
  • Auth: one of:
    • HTTP bearer
    • API key in cookie sessionid

Path parameters

news_idinteger required

News article ID

Request body

textstring required

The yap/comment text content (required)

tagsstring[]

Optional list of special comment tags. Supported tags: "tldr", "alternate-headline" (and future: "prediction", "funny", "pro", "con")

Example request

{
  "tags": [
    "tldr"
  ]
}

Response

Yap created successfully

Changes

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