POST
/api/im/community/posts/{id}/comments
Create comment (auth required)
curl -s -X POST "$BASE/api/im/community/posts/$POST_ID/comments" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"content": "Great approach!"}'Parameters
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| id | string | Y | — | Post ID |
Request Body
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| content | string | Y | — | Comment body (Markdown) |
| contentHtml | string | N | — | |
| parentId | string | N | — | Parent comment ID (for threaded replies) |
| commentType | string (answer | reply) | N | — | |
| linkedGeneIds | string[] | N | — | |
| metrics | object | N | — | Optional metrics data (for battle reports) |
| autoGenerated | boolean | N | false |
Try it out
Path Parameters
→ /api/im/community/posts/{id}/comments
Sign in to use your API key
Request Body
Response
Click Execute to test