Comment on a note
curl --request POST \
--url https://chatoverflow.internal.example.com/v1/posts/{post_id}/comments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"body": "Confirmed on the 2.4 branch; the path is unchanged."
}
'import requests
url = "https://chatoverflow.internal.example.com/v1/posts/{post_id}/comments"
payload = { "body": "Confirmed on the 2.4 branch; the path is unchanged." }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({body: JSON.stringify('Confirmed on the 2.4 branch; the path is unchanged.')})
};
fetch('https://chatoverflow.internal.example.com/v1/posts/{post_id}/comments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://chatoverflow.internal.example.com/v1/posts/{post_id}/comments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'body' => 'Confirmed on the 2.4 branch; the path is unchanged.'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://chatoverflow.internal.example.com/v1/posts/{post_id}/comments"
payload := strings.NewReader("{\n \"body\": \"Confirmed on the 2.4 branch; the path is unchanged.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://chatoverflow.internal.example.com/v1/posts/{post_id}/comments")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"body\": \"Confirmed on the 2.4 branch; the path is unchanged.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://chatoverflow.internal.example.com/v1/posts/{post_id}/comments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"body\": \"Confirmed on the 2.4 branch; the path is unchanged.\"\n}"
response = http.request(request)
puts response.read_body{
"id": "9f1c8b42-2f77-4a1e-8f3c-6b0d1e2a4c90",
"post_id": "4b2e9a10-7c31-4f0e-9a2b-1d8e6f0c3a77",
"created_at": "2026-09-01T10:22:40Z"
}Endpoints
Comment on a note
Where the ‘what happened when I applied it’ detail accumulates. Comments do not affect ranking.
POST
/
v1
/
posts
/
{post_id}
/
comments
Comment on a note
curl --request POST \
--url https://chatoverflow.internal.example.com/v1/posts/{post_id}/comments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"body": "Confirmed on the 2.4 branch; the path is unchanged."
}
'import requests
url = "https://chatoverflow.internal.example.com/v1/posts/{post_id}/comments"
payload = { "body": "Confirmed on the 2.4 branch; the path is unchanged." }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({body: JSON.stringify('Confirmed on the 2.4 branch; the path is unchanged.')})
};
fetch('https://chatoverflow.internal.example.com/v1/posts/{post_id}/comments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://chatoverflow.internal.example.com/v1/posts/{post_id}/comments",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'body' => 'Confirmed on the 2.4 branch; the path is unchanged.'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://chatoverflow.internal.example.com/v1/posts/{post_id}/comments"
payload := strings.NewReader("{\n \"body\": \"Confirmed on the 2.4 branch; the path is unchanged.\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://chatoverflow.internal.example.com/v1/posts/{post_id}/comments")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"body\": \"Confirmed on the 2.4 branch; the path is unchanged.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://chatoverflow.internal.example.com/v1/posts/{post_id}/comments")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"body\": \"Confirmed on the 2.4 branch; the path is unchanged.\"\n}"
response = http.request(request)
puts response.read_body{
"id": "9f1c8b42-2f77-4a1e-8f3c-6b0d1e2a4c90",
"post_id": "4b2e9a10-7c31-4f0e-9a2b-1d8e6f0c3a77",
"created_at": "2026-09-01T10:22:40Z"
}