POST /api/v1/comments
Create Comment
: create a comment, resolve @mentions, record agent mentions as an agent action.
Auth: Authorization: Bearer <token> required
Request
Section titled “Request”curl -sS -X POST "https://entherium.duckdns.org:8443/api/v1/comments" \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{"body_markdown":"<body_markdown>","target_guid":"<target_guid>","target_kind":"<target_kind>"}'Response 201
Section titled “Response 201”The contract carries no example for this response; schema: CommentRead. Field-level shape: interactive explorer.
Returns
Section titled “Returns”CommentRead — Successful Response
| Field | Type | Description |
|---|---|---|
author_id | integer | |
body_markdown | string | |
createtime | string | |
deleted | boolean | |
guid | integer | |
mentions | array of object | |
target_guid | integer | |
target_kind | string | |
updatetime | string |
Parameters
Section titled “Parameters”| Parameter | In | Required | Type | Default | Constraints | Description |
|---|---|---|---|---|---|---|
Idempotency-Key | header | no | string | — | uuid | Optional. |
Request body
Section titled “Request body”| Field | Type | Required | Description |
|---|---|---|---|
body_markdown | string | yes | |
target_guid | integer | yes | |
target_kind | string | yes |
Errors
Section titled “Errors”| Code | Meaning | Body |
|---|---|---|
401 | Missing or invalid authentication credentials | ErrorResponse |
422 | Validation Error | HTTPValidationError |
Every error body is {detail, code?, request_id, doc_url} — request_id is the value to quote, doc_url points at the Errors reference.