agent_id
to be provided in the URL path to identify the agent on which the comment is being posted.comment
field (mandatory), which holds the textual content of the comment.agent_id
, follow this guide:curl --location -g --request POST 'https:///v2/api/agent/0/comment' \
--header 'Ocp-Apim-Subscription-Key: ' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"comment": "hey, I am testing comment"
}'
{
"success": true,
"message": "Comment created successfully",
"data": {
"id": 24,
"user": {
"id": 16,
"email": "user@example.com",
"is_staff": true,
"is_superuser": true,
"is_active": true,
"date_joined": "2024-01-30T17:23:41.663281Z",
"first_name": "user",
"last_name": "user",
"organization": {
"id": 1,
"org_name": "Data Science Dojo",
"domain": "datasciencedojo.com",
"description": "",
"org_logo_url": null,
"org_icon_url": null,
"is_deleted": false,
"created_by": "System",
"created_on": "2024-01-20T01:32:56.659642Z",
"modified_by": "user@example.com",
"modified_on": "2024-01-20T01:32:56.659663Z"
}
},
"comment": "hey, I am testing comment",
"submit_date": "2025-04-02T20:56:16.332786Z",
"is_public": true,
"is_removed": false,
"agent": {
"id": 1297,
"agent_name": "FC Barca"
}
}
}