Create Comment on an Agent
POST
/v2/api/agent/{agent_id}/comment
Agent Comment
Overview
Functionality
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.How to Find Your Agent ID
agent_id
, follow this guide:How to View Agent ID
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/v2/api/agent//comment' \
--header 'Content-Type: application/json' \
--data-raw '{
"comment": "hey, I am testing comment"
}'
Response Response Example
201 - Example 1
{
"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"
}
}
}
Request
Path Params
agent_id
integerÂ
required
Example:
1297
Body Params application/json