Comments
Comments aid conversation and collaboration around workspace datasets. Comments can be made on datasets, or other comments to form threads.
Objects
Comment
| Path | JSON Type | Format | Description |
|---|---|---|---|
id |
string |
Version 4 UUID | The comment ID |
message |
string |
The comment message | |
likeCount |
number |
Unsigned integer | The number of likes the comment has received |
likedByProfiles |
object[] |
Array of Members |
The workspace members that have liked the comment |
created |
string |
ISO 8601 timestamp | Timestamp denoting when the comment was created |
lastModified |
string |
ISO 8601 timestamp | Timestamp denoting when the comment was last modified |
from |
object |
Member |
The comment author |
commentCount |
number |
Unsigned integer | The number of replies the comment has received |
datasetId |
string |
Version 4 UUID | The ID of the dataset comment subject |
parentId |
string |
Version 4 UUID | The ID of the parent comment |
{
"id" : "85c5fdbb-ece5-4a4d-bd31-6f19bd8a420a",
"message" : "SIT-generated reply Pesho [2025-11-02T06:32:56.261960877] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-11-02T06:32:56.305517",
"lastModified" : "2025-11-02T06:32:56.305517",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "6bd27afe-a908-4f76-9408-da5cab8f7ca7",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/6bd27afe-a908-4f76-9408-da5cab8f7ca7/comments/85c5fdbb-ece5-4a4d-bd31-6f19bd8a420a",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/85c5fdbb-ece5-4a4d-bd31-6f19bd8a420a",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/85c5fdbb-ece5-4a4d-bd31-6f19bd8a420a"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/85c5fdbb-ece5-4a4d-bd31-6f19bd8a420a/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/85c5fdbb-ece5-4a4d-bd31-6f19bd8a420a",
"type" : "POST"
}
}
}
Requests
- View all comments on a dataset
- View a comment
- View the edit history of a comment
- View all replies to a comment
- Initialise a comment on a dataset
- Initialise a reply to a comment
- Create a comment
- Update a comment
- Record a like of a comment
- Remove a like from a comment
- Delete a comment
View all comments on a dataset
GET
/api/datasets/{dataset-id}/comments
Returns all comments on the dataset {dataset-id}.
Prerequisites
- Dataset
{dataset-id}must exist
Request
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/datasets/6bd27afe-a908-4f76-9408-da5cab8f7ca7/comments' -i -X GET
Python (requests)
import requests
url = "https://app.matatika.com/api/datasets/6bd27afe-a908-4f76-9408-da5cab8f7ca7/comments"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Comment collection with HAL links.
{
"_embedded" : {
"datasetComments" : [ {
"id" : "d29a2b0a-fd2e-42d0-8718-ca40a696fb53",
"message" : "SIT-generated reply Pesho [2025-11-02T06:32:55.489598838] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-11-02T06:32:55.529379",
"lastModified" : "2025-11-02T06:32:55.52938",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "6bd27afe-a908-4f76-9408-da5cab8f7ca7",
"_links" : {
"edit-history" : {
"href" : "https://app.matatika.com/api/comments/d29a2b0a-fd2e-42d0-8718-ca40a696fb53/history",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/6bd27afe-a908-4f76-9408-da5cab8f7ca7/comments/d29a2b0a-fd2e-42d0-8718-ca40a696fb53",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/d29a2b0a-fd2e-42d0-8718-ca40a696fb53",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/d29a2b0a-fd2e-42d0-8718-ca40a696fb53"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/d29a2b0a-fd2e-42d0-8718-ca40a696fb53/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/d29a2b0a-fd2e-42d0-8718-ca40a696fb53",
"type" : "POST"
}
}
}, {
"id" : "e9c7fe79-1c35-49cc-b7a8-f90ca1f4120b",
"message" : "SIT-generated reply Pesho [2025-11-02T06:32:55.346105207] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-11-02T06:32:55.385962",
"lastModified" : "2025-11-02T06:32:55.385962",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "6bd27afe-a908-4f76-9408-da5cab8f7ca7",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/6bd27afe-a908-4f76-9408-da5cab8f7ca7/comments/e9c7fe79-1c35-49cc-b7a8-f90ca1f4120b",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/e9c7fe79-1c35-49cc-b7a8-f90ca1f4120b",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/e9c7fe79-1c35-49cc-b7a8-f90ca1f4120b"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/e9c7fe79-1c35-49cc-b7a8-f90ca1f4120b/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/e9c7fe79-1c35-49cc-b7a8-f90ca1f4120b",
"type" : "POST"
}
}
}, {
"id" : "79dd83a3-942b-4813-9df0-ad04d82874f6",
"message" : "SIT-generated reply Pesho [2025-11-02T06:32:55.237267127] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-11-02T06:32:55.275528",
"lastModified" : "2025-11-02T06:32:55.275528",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "6bd27afe-a908-4f76-9408-da5cab8f7ca7",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/6bd27afe-a908-4f76-9408-da5cab8f7ca7/comments/79dd83a3-942b-4813-9df0-ad04d82874f6",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/79dd83a3-942b-4813-9df0-ad04d82874f6",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/79dd83a3-942b-4813-9df0-ad04d82874f6"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/79dd83a3-942b-4813-9df0-ad04d82874f6/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/79dd83a3-942b-4813-9df0-ad04d82874f6",
"type" : "POST"
}
}
}, {
"id" : "8e3629f2-1beb-423f-b102-275e0979e0ff",
"message" : "SIT-generated reply Pesho [2025-11-02T06:32:54.027820503] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-11-02T06:32:54.069108",
"lastModified" : "2025-11-02T06:32:54.069108",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 3,
"datasetId" : "6bd27afe-a908-4f76-9408-da5cab8f7ca7",
"_links" : {
"comments" : {
"href" : "https://app.matatika.com/api/datasets/6bd27afe-a908-4f76-9408-da5cab8f7ca7/comments?parentId=8e3629f2-1beb-423f-b102-275e0979e0ff",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/6bd27afe-a908-4f76-9408-da5cab8f7ca7/comments/8e3629f2-1beb-423f-b102-275e0979e0ff",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/8e3629f2-1beb-423f-b102-275e0979e0ff",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/8e3629f2-1beb-423f-b102-275e0979e0ff"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/8e3629f2-1beb-423f-b102-275e0979e0ff/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/8e3629f2-1beb-423f-b102-275e0979e0ff",
"type" : "POST"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/datasets/6bd27afe-a908-4f76-9408-da5cab8f7ca7/comments?page=0&size=20"
}
},
"page" : {
"size" : 20,
"totalElements" : 4,
"totalPages" : 1,
"number" : 0
}
}
View a comment
GET
/api/comments/{comment-id}
Returns the comment {comment-id}.
Prerequisites
- Comment
{comment-id}must exist
Request
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/comments/85c5fdbb-ece5-4a4d-bd31-6f19bd8a420a' -i -X GET
Python (requests)
import requests
url = "https://app.matatika.com/api/comments/85c5fdbb-ece5-4a4d-bd31-6f19bd8a420a"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Comment with HAL links.
{
"id" : "85c5fdbb-ece5-4a4d-bd31-6f19bd8a420a",
"message" : "SIT-generated reply Pesho [2025-11-02T06:32:56.261960877] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-11-02T06:32:56.305517",
"lastModified" : "2025-11-02T06:32:56.305517",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "6bd27afe-a908-4f76-9408-da5cab8f7ca7",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/6bd27afe-a908-4f76-9408-da5cab8f7ca7/comments/85c5fdbb-ece5-4a4d-bd31-6f19bd8a420a",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/85c5fdbb-ece5-4a4d-bd31-6f19bd8a420a",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/85c5fdbb-ece5-4a4d-bd31-6f19bd8a420a"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/85c5fdbb-ece5-4a4d-bd31-6f19bd8a420a/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/85c5fdbb-ece5-4a4d-bd31-6f19bd8a420a",
"type" : "POST"
}
}
}
View the edit history of a comment
GET
/api/comments/{comment-id}/history
Returns the edit history of the comment {comment-id}.
Prerequisites
- Comment
{comment-id}must exist
Request
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/comments/85c5fdbb-ece5-4a4d-bd31-6f19bd8a420a/history' -i -X GET
Python (requests)
import requests
url = "https://app.matatika.com/api/comments/85c5fdbb-ece5-4a4d-bd31-6f19bd8a420a/history"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
[ {
"lastModified" : "2025-11-02T06:32:56.309",
"message" : "SIT-generated reply Pesho [2025-11-02T06:32:56.261960877] to ",
"editVersion" : "430927"
}, {
"lastModified" : "2025-11-02T06:32:56.433",
"message" : "SIT-generated reply Pesho [2025-11-02T06:32:56.390023934] to ",
"editVersion" : "430928"
} ]
View all replies to a comment
GET
/api/comments/{comment-id}
Returns all replies to the comment {comment-id}.
Prerequisites
- Comment
{comment-id}must exist
Request
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/datasets/6bd27afe-a908-4f76-9408-da5cab8f7ca7/comments?parentId=8e3629f2-1beb-423f-b102-275e0979e0ff' -i -X GET
Python (requests)
import requests
url = "https://app.matatika.com/api/datasets/6bd27afe-a908-4f76-9408-da5cab8f7ca7/comments?parentId=8e3629f2-1beb-423f-b102-275e0979e0ff"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Comment with HAL links.
{
"_embedded" : {
"datasetComments" : [ {
"id" : "7c0eaae1-08c1-49e3-b5b8-a5ccd1203f5d",
"message" : "SIT-generated reply Pesho [2025-11-02T06:32:54.672846252] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-11-02T06:32:54.714028",
"lastModified" : "2025-11-02T06:32:54.714028",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "6bd27afe-a908-4f76-9408-da5cab8f7ca7",
"parentId" : "8e3629f2-1beb-423f-b102-275e0979e0ff",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/6bd27afe-a908-4f76-9408-da5cab8f7ca7/comments/7c0eaae1-08c1-49e3-b5b8-a5ccd1203f5d",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/7c0eaae1-08c1-49e3-b5b8-a5ccd1203f5d",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/7c0eaae1-08c1-49e3-b5b8-a5ccd1203f5d"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/7c0eaae1-08c1-49e3-b5b8-a5ccd1203f5d/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/7c0eaae1-08c1-49e3-b5b8-a5ccd1203f5d",
"type" : "POST"
}
}
}, {
"id" : "741b358f-8d33-49d5-a756-5f5407f0ecd9",
"message" : "SIT-generated reply Pesho [2025-11-02T06:32:54.549797208] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-11-02T06:32:54.589663",
"lastModified" : "2025-11-02T06:32:54.589663",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "6bd27afe-a908-4f76-9408-da5cab8f7ca7",
"parentId" : "8e3629f2-1beb-423f-b102-275e0979e0ff",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/6bd27afe-a908-4f76-9408-da5cab8f7ca7/comments/741b358f-8d33-49d5-a756-5f5407f0ecd9",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/741b358f-8d33-49d5-a756-5f5407f0ecd9",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/741b358f-8d33-49d5-a756-5f5407f0ecd9"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/741b358f-8d33-49d5-a756-5f5407f0ecd9/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/741b358f-8d33-49d5-a756-5f5407f0ecd9",
"type" : "POST"
}
}
}, {
"id" : "759f0521-6574-4d52-8bf1-e762ce64d460",
"message" : "SIT-generated reply Pesho [2025-11-02T06:32:54.435779088] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-11-02T06:32:54.475325",
"lastModified" : "2025-11-02T06:32:54.475325",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "6bd27afe-a908-4f76-9408-da5cab8f7ca7",
"parentId" : "8e3629f2-1beb-423f-b102-275e0979e0ff",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/6bd27afe-a908-4f76-9408-da5cab8f7ca7/comments/759f0521-6574-4d52-8bf1-e762ce64d460",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/759f0521-6574-4d52-8bf1-e762ce64d460",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/759f0521-6574-4d52-8bf1-e762ce64d460"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/759f0521-6574-4d52-8bf1-e762ce64d460/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/759f0521-6574-4d52-8bf1-e762ce64d460",
"type" : "POST"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/datasets/6bd27afe-a908-4f76-9408-da5cab8f7ca7/comments?parentId=8e3629f2-1beb-423f-b102-275e0979e0ff&page=0&size=20"
}
},
"page" : {
"size" : 20,
"totalElements" : 3,
"totalPages" : 1,
"number" : 0
}
}
Initialise a comment on a dataset
POST
/api/datasets/{dataset-id}/comments
Initialises a new comment on the dataset {dataset-id}.
Prerequisites
- Dataset
{dataset-id}must exist
Request
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/datasets/6bd27afe-a908-4f76-9408-da5cab8f7ca7/comments' -i -X POST \
-H 'Content-Type: application/json'
Python (requests)
import requests
url = "https://app.matatika.com/api/datasets/6bd27afe-a908-4f76-9408-da5cab8f7ca7/comments"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("POST", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Comment with HAL links.
{
"id" : "ca8baa5e-2a1d-4ccf-b4ae-c0b937d9a227",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-11-02T06:32:56.077518662",
"lastModified" : "2025-11-02T06:32:56.077519062",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "6bd27afe-a908-4f76-9408-da5cab8f7ca7",
"_links" : {
"create comment" : {
"href" : "https://app.matatika.com/api/datasets/6bd27afe-a908-4f76-9408-da5cab8f7ca7/comments/ca8baa5e-2a1d-4ccf-b4ae-c0b937d9a227",
"type" : "PUT"
}
}
}
Initialise a reply to a comment
POST
/api/comments/{comment-id}
Initialises a new reply comment to the comment {comment-id}.
Prerequisites
- Comment
{comment-id}must exist
Request
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/comments/8e3629f2-1beb-423f-b102-275e0979e0ff' -i -X POST \
-H 'Content-Type: application/json'
Python (requests)
import requests
url = "https://app.matatika.com/api/comments/8e3629f2-1beb-423f-b102-275e0979e0ff"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("POST", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Comment with HAL links.
{
"id" : "b4686858-c9d2-4555-b16c-9d399231cdfb",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-11-02T06:32:55.788594732",
"lastModified" : "2025-11-02T06:32:55.788595032",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "6bd27afe-a908-4f76-9408-da5cab8f7ca7",
"parentId" : "8e3629f2-1beb-423f-b102-275e0979e0ff",
"_links" : {
"create comment" : {
"href" : "https://app.matatika.com/api/datasets/6bd27afe-a908-4f76-9408-da5cab8f7ca7/comments/b4686858-c9d2-4555-b16c-9d399231cdfb",
"type" : "PUT"
}
}
}
Create a comment
PUT
/api/comments/{comment-id}
Creates the comment {comment-id}.
Prerequisites
- The comment must have been initialised in order to create it
- The target dataset
{dataset-id}or comment{comment-id}must exist
Request
Body
Comment resource.
{
"message" : "SIT-generated reply Pesho [2025-11-02T06:32:55.611515853] to ",
"datasetId" : "6bd27afe-a908-4f76-9408-da5cab8f7ca7"
}
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/datasets/6bd27afe-a908-4f76-9408-da5cab8f7ca7/comments/631b54cf-3845-4488-b6b4-d1bc208875a1' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"message" : "SIT-generated reply Pesho [2025-11-02T06:32:55.611515853] to ",
"datasetId" : "6bd27afe-a908-4f76-9408-da5cab8f7ca7"
}'
Python (requests)
import requests
url = "https://app.matatika.com/api/datasets/6bd27afe-a908-4f76-9408-da5cab8f7ca7/comments/631b54cf-3845-4488-b6b4-d1bc208875a1"
data = {
"message" : "SIT-generated reply Pesho [2025-11-02T06:32:55.611515853] to ",
"datasetId" : "6bd27afe-a908-4f76-9408-da5cab8f7ca7"
}
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("PUT", url, headers=headers, data=data)
print(response.text.encode('utf8'))
Response
201 Created
Comment with HAL links.
{
"id" : "631b54cf-3845-4488-b6b4-d1bc208875a1",
"message" : "SIT-generated reply Pesho [2025-11-02T06:32:55.611515853] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-11-02T06:32:55.714719469",
"lastModified" : "2025-11-02T06:32:55.714719669",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "6bd27afe-a908-4f76-9408-da5cab8f7ca7",
"_links" : {
"edit-history" : {
"href" : "https://app.matatika.com/api/comments/631b54cf-3845-4488-b6b4-d1bc208875a1/history",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/6bd27afe-a908-4f76-9408-da5cab8f7ca7/comments/631b54cf-3845-4488-b6b4-d1bc208875a1",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/631b54cf-3845-4488-b6b4-d1bc208875a1",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/631b54cf-3845-4488-b6b4-d1bc208875a1"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/631b54cf-3845-4488-b6b4-d1bc208875a1/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/631b54cf-3845-4488-b6b4-d1bc208875a1",
"type" : "POST"
}
}
}
Update a comment
PUT
/api/comments/{comment-id}
Updates the comment {comment-id}.
Prerequisites
- Comment
{comment-id}must exist
Request
Body
Comment resource.
{
"message" : "SIT-generated reply Pesho [2025-11-02T06:32:56.108693543] to "
}
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/comments/85c5fdbb-ece5-4a4d-bd31-6f19bd8a420a' -i -X GET
Python (requests)
import requests
url = "https://app.matatika.com/api/comments/85c5fdbb-ece5-4a4d-bd31-6f19bd8a420a"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Comment with HAL links.
{
"id" : "85c5fdbb-ece5-4a4d-bd31-6f19bd8a420a",
"message" : "SIT-generated reply Pesho [2025-11-02T06:32:56.261960877] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-11-02T06:32:56.305517",
"lastModified" : "2025-11-02T06:32:56.305517",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "6bd27afe-a908-4f76-9408-da5cab8f7ca7",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/6bd27afe-a908-4f76-9408-da5cab8f7ca7/comments/85c5fdbb-ece5-4a4d-bd31-6f19bd8a420a",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/85c5fdbb-ece5-4a4d-bd31-6f19bd8a420a",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/85c5fdbb-ece5-4a4d-bd31-6f19bd8a420a"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/85c5fdbb-ece5-4a4d-bd31-6f19bd8a420a/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/85c5fdbb-ece5-4a4d-bd31-6f19bd8a420a",
"type" : "POST"
}
}
}
Record a like of a comment
PUT
/api/comments/{comment-id}/like
Records a like of the comment {comment-id} from the authenticated user profile.
Prerequisites
- Comment
{comment-id}must exist
Request
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/comments/8e3629f2-1beb-423f-b102-275e0979e0ff/like' -i -X PUT \
-H 'Content-Type: application/json'
Python (requests)
import requests
url = "https://app.matatika.com/api/comments/8e3629f2-1beb-423f-b102-275e0979e0ff/like"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("PUT", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
No response body provided.
Remove a like from a comment
DELETE
/api/comments/{comment-id}/like
Removes a like of the comment {comment-id} from the authenticated user profile.
Prerequisites
- Comment
{comment-id}must exist
Request
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/comments/8e3629f2-1beb-423f-b102-275e0979e0ff/like' -i -X DELETE
Python (requests)
import requests
url = "https://app.matatika.com/api/comments/8e3629f2-1beb-423f-b102-275e0979e0ff/like"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("DELETE", url, headers=headers)
print(response.text.encode('utf8'))
Response
204 No Content
No response body provided.
Delete a comment
DELETE
/api/comments/{comment-id}
Deletes the comment {comment-id}.
Prerequisites
- Comment
{comment-id}must exist
Request
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/comments/6df63a58-268c-4f1c-8c12-3e1ed94f7ce2' -i -X DELETE
Python (requests)
import requests
url = "https://app.matatika.com/api/comments/6df63a58-268c-4f1c-8c12-3e1ed94f7ce2"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("DELETE", url, headers=headers)
print(response.text.encode('utf8'))
Response
204 No Content
No response body provided.