Session Comment¶
Data Structures¶
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
Read-only. Unique. |
|
|
string |
Immutable. |
|
|
string |
yes |
ID of the session to comment. Immutable. |
|
string |
yes |
Text content of the session comment. |
|
datetime |
yes |
Value format: time. Expensive to use. |
|
datetime |
yes |
Value format: time. Expensive to use. |
|
datetime |
Read-only. Timestamp of creation. |
|
|
datetime |
Read-only. Timestamp of modification. |
|
|
string |
Read-only. |
|
|
string |
Read-only. Expensive to use. |
|
|
boolean |
Read-only. |
Retrieve Available Attributes of the SessionCommentModel¶
Request
Method |
|
Path |
|
GET /api/v2/objspec/session_comment
Example Request
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/objspec/session_comment'
Get Session Comments¶
Request
Method |
|
Path |
|
GET /api/v2/session/<session_id>/comment
Example Request
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.31.92.108/api/v2/session/8169529724050079753/comment'
Response
{
"result": "success",
"session_comment": [
{
"id": "8169529724050079745",
"session_id": "8169529724050079753",
"text": "Comment no 1",
"start_at": "00:00:14",
"finish_at": "00:00:15",
"created_at": "2025-07-08 14:19:29.001496-07",
"modified_at": "2025-07-08 14:19:29.001496-07",
"modified_by": "8169529724050079745",
"modified_by_name": "admin"
},
{
"id": "8169529724050079746",
"session_id": "8169529724050079753",
"text": "Comment no 2",
"start_at": "00:00:26",
"finish_at": "00:00:27",
"created_at": "2025-07-08 14:19:57.31709-07",
"modified_at": "2025-07-08 14:19:57.31709-07",
"modified_by": "8169529724050079745",
"modified_by_name": "admin"
}
]
}
Get Session Comment by ID¶
Request
Method |
|
Path |
|
GET /api/v2/session/<session_id>/comment/<id>
Example Request
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.31.92.108/api/v2/session/8169529724050079753/comment/8169529724050079746'
Response
{
"result": "success",
"session_comment": [
{
"id": "8169529724050079746",
"session_id": "8169529724050079753",
"text": "Comment no 2",
"start_at": "00:00:26",
"finish_at": "00:00:27",
"created_at": "2025-07-08 14:19:57.31709-07",
"modified_at": "2025-07-08 14:19:57.31709-07",
"modified_by": "8169529724050079745",
"modified_by_name": "admin"
}
]
}
Add Session Comment¶
Request
Method |
|
Path |
|
Headers |
|
Body |
|
POST /api/v2/session/<session_id>/comment
Example Request
curl -s -k -X POST \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
-H 'Content-Type: application/json' \
https://10.31.92.108/api/v2/session/4665729213955833865/comment \
-d '{"text": "Text content of the session comment.","start_at":"00:01:00","finish_at":"00:01:00"}'
Response
{
"result": "success",
"session_comment": {
"id": "4665729213955833859"
}
}
Modify Session Comment¶
Request
Method |
|
Path |
|
Headers |
|
Body |
|
PATCH /api/v2/session/<session_id>/comment/<id>
Example Request
curl -s -k -X PATCH \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
-H 'Content-Type: application/json' \
https://10.31.92.108/api/v2/session/8169529724050079753/comment/8169529724050079746 \
-d '{"text": "Changed session comment content.","start_at":"00:01:00","finish_at":"00:01:00"}'
Response
{
"result": "success"
}
Delete Session Comment¶
Request
Method |
|
Path |
|
DELETE /api/v2/session/<session_id>/comment/<id>
Example Request
curl -s -k -X DELETE \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.31.92.108/api/v2/session/8169529724050079753/comment/8169529724050079746'
Response
{
"result": "success"
}