Create a Comment Mention

Changed on
post/comments/ (COPY)

Request

  • Base URL
    https://cf-blast.livelikecdn.com/api/v1
  • URL
    https://cf-blast.livelikecdn.com/api/v1/comments/ (COPY)
  • Auth
    none required

Headers

Authorizationstring

Bearer Token

Request body

comment_board_idstring required
textstring

Comment text

custom_datastring
parent_comment_idstring

Comment id of the parent comment for which this comment be treated as a reply

Response

200

idstring
urlstring
comment_board_idstring
parent_comment_idunknown
thread_comment_idunknown
textstring
filtered_textunknown
comment_depthinteger
custom_dataunknown
author_idstring
author_image_urlunknown
is_deletedboolean
deleted_byunknown
created_atstring
deleted_atunknown
replies_urlstring
replies_countinteger
is_reportedboolean
comment_reports_countinteger
dismiss_reported_comment_urlstring

Example response

{
  "id": "b62057f8-d46a-4979-9d1e-1e15f0cf4a11",
  "url": "http://localhost:8000/api/v1/comments/b62057f8-d46a-4979-9d1e-1e15f0cf4a11/",
  "comment_board_id": "4fbf1058-a8b6-4aed-901a-0dc43862561d",
  "text": "mention1 <@profile:84e16917-6b30-4e23-9598-458e70baa5e9>",
  "author_id": "ddacd28b-93da-4d05-9ea6-eeed35e74d90",
  "author": {
    "id": "ddacd28b-93da-4d05-9ea6-eeed35e74d90",
    "url": "http://localhost:8000/api/v1/profiles/ddacd28b-93da-4d05-9ea6-eeed35e74d90/",
    "created_at": "2020-08-01T02:20:43.072000Z",
    "nickname": "Spicy Kicker",
    "badges_url": "http://localhost:8000/api/v1/profiles/ddacd28b-93da-4d05-9ea6-eeed35e74d90/badges/",
    "badge_progress_url": "http://localhost:8000/api/v1/profiles/ddacd28b-93da-4d05-9ea6-eeed35e74d90/badge-progress/",
    "subscribe_channel": "profile.ddacd28b-93da-4d05-9ea6-eeed35e74d90",
    "chat_room_memberships_url": "http://localhost:8000/api/v1/profiles/ddacd28b-93da-4d05-9ea6-eeed35e74d90/chat-room-memberships/",
    "reward_item_credit_url": "http://localhost:8000/api/v1/profiles/ddacd28b-93da-4d05-9ea6-eeed35e74d90/reward-item-credits/",
    "reward_item_debit_url": "http://localhost:8000/api/v1/profiles/ddacd28b-93da-4d05-9ea6-eeed35e74d90/reward-item-debits/",
    "reward_item_balances_url": "http://localhost:8000/api/v1/profiles/ddacd28b-93da-4d05-9ea6-eeed35e74d90/reward-item-balances/",
    "reward_item_transfer_url": "http://localhost:8000/api/v1/profiles/ddacd28b-93da-4d05-9ea6-eeed35e74d90/reward-item-transfers/",
    "block_profile_url": "http://localhost:8000/api/v1/profile-blocks/",
    "blocked_profiles_template_url": "http://localhost:8000/api/v1/profile-blocks/?blocked_profile_id={blocked_profile_id}",
    "blocked_profile_ids_url": "http://localhost:8000/api/v1/blocked-profile-ids/",
    "leaderboards_url": "http://localhost:8000/api/v1/profiles/ddacd28b-93da-4d05-9ea6-eeed35e74d90/leaderboards/",
    "leaderboard_views_url": "http://localhost:8000/api/v1/profiles/ddacd28b-93da-4d05-9ea6-eeed35e74d90/leaderboard-views/",
    "earned_badges_url": "http://localhost:8000/api/v1/earned-badges/?profile_id=ddacd28b-93da-4d05-9ea6-eeed35e74d90",
    "redemption_keys_url": "http://localhost:8000/api/v1/profiles/ddacd28b-93da-4d05-9ea6-eeed35e74d90/redemption-keys/"
  },
  "created_at": "2024-08-06T15:47:30.637711Z",
  "replies_url": "http://localhost:8000/api/v1/comments/?comment_board_id=4fbf1058-a8b6-4aed-901a-0dc43862561d&parent_comment_id=b62057f8-d46a-4979-9d1e-1e15f0cf4a11&is_reply=True&thread_comment_id=b62057f8-d46a-4979-9d1e-1e15f0cf4a11",
  "dismiss_reported_comment_url": "http://localhost:8000/api/v1/comments/b62057f8-d46a-4979-9d1e-1e15f0cf4a11/dismiss-reports/",
  "mentions": [
    {
      "id": "ab43b3be-197a-4579-b1df-3b9335967012",
      "mentioned_profile_id": "84e16917-6b30-4e23-9598-458e70baa5e9",
      "mentioned_profile_nickname": "Final Dog",
      "mentioned_by_profile_id": "ddacd28b-93da-4d05-9ea6-eeed35e74d90",
      "mentioned_by_profile_nickname": "Spicy Kicker",
      "start_index": 3,
      "end_index": 10
    }
  ]
}

Changes