Update a comment

Update an existing comment.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

OR
X-API-Keystring

Server-side API key (drzl_live_ prefix), least-privilege scoped. Keep it secret — never ship it to a browser or SPA. An alternative to a session JWT (HTTPBearer) on the developer surface. See docs/api/cors-and-auth.md.

Path parameters

comment_idstringRequiredformat: "uuid"

Headers

X-API-Keystring or nullOptional

Request

This endpoint expects an object.
contentstringRequired1-2000 characters

Response

Successful Response
contentstring
created_atdatetime
idstringformat: "uuid"
is_deletedboolean
is_editedboolean
likes_countinteger
market_idstringformat: "uuid"
updated_atdatetime
user_idstringformat: "uuid"
holder_badgeobject or nullOptional

A comment author’s position in the market (FP-70). Only present for holdings_visible authors (or the viewer’s own comments); size is a coarse band, never an exact count — no size leakage.

is_flaggedbooleanOptionalDefaults to false
is_hiddenbooleanOptionalDefaults to false
is_liked_by_meboolean or nullOptional
is_pinnedbooleanOptionalDefaults to false
mentionslist of objects or nullOptional
parent_idstring or nullOptionalformat: "uuid"
replieslist of objects or nullOptional
replies_countintegerOptionalDefaults to 0
userobject or nullOptional
Schema for user info in comment responses.

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error