Comment on a post.
curl --request POST \
--url https://tryno.io/api/posts/{postId}/comments \
--header 'Content-Type: application/json' \
--cookie __session= \
--data '
{
"body": "<string>"
}
'const options = {
method: 'POST',
headers: {cookie: '__session=', 'Content-Type': 'application/json'},
body: JSON.stringify({body: JSON.stringify('<string>')})
};
fetch('https://tryno.io/api/posts/{postId}/comments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://tryno.io/api/posts/{postId}/comments"
payload = { "body": "<string>" }
headers = {
"cookie": "__session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{
"error": "<string>"
}{
"error": "<string>"
}feed
Comment on a post.
POST
/
posts
/
{postId}
/
comments
Comment on a post.
curl --request POST \
--url https://tryno.io/api/posts/{postId}/comments \
--header 'Content-Type: application/json' \
--cookie __session= \
--data '
{
"body": "<string>"
}
'const options = {
method: 'POST',
headers: {cookie: '__session=', 'Content-Type': 'application/json'},
body: JSON.stringify({body: JSON.stringify('<string>')})
};
fetch('https://tryno.io/api/posts/{postId}/comments', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://tryno.io/api/posts/{postId}/comments"
payload = { "body": "<string>" }
headers = {
"cookie": "__session=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{
"error": "<string>"
}{
"error": "<string>"
}Autorizações
Clerk-managed session cookie (or the first-party tryno_session bridge cookie). Sent automatically by browsers on same-origin requests.
Parâmetros de caminho
Corpo
application/json
Resposta
Success.
The response is of type object.

