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 Member s |
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" : "71085cea-0e2a-4075-ab0c-0d61c84fe3e2",
"message" : "SIT-generated reply Pesho [2025-06-19T11:14:11.059815] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-06-19T10:14:11.138841",
"lastModified" : "2025-06-19T10:14:11.138841",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "54627567-52ea-4998-8faf-8e317e615449",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/54627567-52ea-4998-8faf-8e317e615449/comments/71085cea-0e2a-4075-ab0c-0d61c84fe3e2",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/71085cea-0e2a-4075-ab0c-0d61c84fe3e2",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/71085cea-0e2a-4075-ab0c-0d61c84fe3e2"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/71085cea-0e2a-4075-ab0c-0d61c84fe3e2/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/71085cea-0e2a-4075-ab0c-0d61c84fe3e2",
"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:443/api/datasets/54627567-52ea-4998-8faf-8e317e615449/comments' -i -X GET \
-H 'Accept: application/json, application/javascript, text/javascript, text/json'
Python (requests
)
import requests
url = "https://app.matatika.com:443/api/datasets/54627567-52ea-4998-8faf-8e317e615449/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" : "595f8cd3-eb3a-4240-9725-8a7ec8ac8f7b",
"message" : "SIT-generated reply Pesho [2025-06-19T11:14:09.801434] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-06-19T10:14:09.871277",
"lastModified" : "2025-06-19T10:14:09.871278",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "54627567-52ea-4998-8faf-8e317e615449",
"_links" : {
"edit-history" : {
"href" : "https://app.matatika.com/api/comments/595f8cd3-eb3a-4240-9725-8a7ec8ac8f7b/history",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/54627567-52ea-4998-8faf-8e317e615449/comments/595f8cd3-eb3a-4240-9725-8a7ec8ac8f7b",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/595f8cd3-eb3a-4240-9725-8a7ec8ac8f7b",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/595f8cd3-eb3a-4240-9725-8a7ec8ac8f7b"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/595f8cd3-eb3a-4240-9725-8a7ec8ac8f7b/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/595f8cd3-eb3a-4240-9725-8a7ec8ac8f7b",
"type" : "POST"
}
}
}, {
"id" : "0c3c34a1-f986-4edd-87ba-dd22b9ce076a",
"message" : "SIT-generated reply Pesho [2025-06-19T11:14:09.663755] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-06-19T10:14:09.712308",
"lastModified" : "2025-06-19T10:14:09.712308",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "54627567-52ea-4998-8faf-8e317e615449",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/54627567-52ea-4998-8faf-8e317e615449/comments/0c3c34a1-f986-4edd-87ba-dd22b9ce076a",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/0c3c34a1-f986-4edd-87ba-dd22b9ce076a",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/0c3c34a1-f986-4edd-87ba-dd22b9ce076a"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/0c3c34a1-f986-4edd-87ba-dd22b9ce076a/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/0c3c34a1-f986-4edd-87ba-dd22b9ce076a",
"type" : "POST"
}
}
}, {
"id" : "fa1078fa-0936-44ea-bfbc-b0e007466882",
"message" : "SIT-generated reply Pesho [2025-06-19T11:14:09.523614] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-06-19T10:14:09.578098",
"lastModified" : "2025-06-19T10:14:09.578099",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "54627567-52ea-4998-8faf-8e317e615449",
"_links" : {
"edit-history" : {
"href" : "https://app.matatika.com/api/comments/fa1078fa-0936-44ea-bfbc-b0e007466882/history",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/54627567-52ea-4998-8faf-8e317e615449/comments/fa1078fa-0936-44ea-bfbc-b0e007466882",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/fa1078fa-0936-44ea-bfbc-b0e007466882",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/fa1078fa-0936-44ea-bfbc-b0e007466882"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/fa1078fa-0936-44ea-bfbc-b0e007466882/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/fa1078fa-0936-44ea-bfbc-b0e007466882",
"type" : "POST"
}
}
}, {
"id" : "34f43661-440b-40e8-a782-da73a00eed70",
"message" : "SIT-generated reply Pesho [2025-06-19T11:14:07.849782] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-06-19T10:14:07.89955",
"lastModified" : "2025-06-19T10:14:07.899551",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 3,
"datasetId" : "54627567-52ea-4998-8faf-8e317e615449",
"_links" : {
"comments" : {
"href" : "https://app.matatika.com/api/datasets/54627567-52ea-4998-8faf-8e317e615449/comments?parentId=34f43661-440b-40e8-a782-da73a00eed70",
"type" : "GET"
},
"edit-history" : {
"href" : "https://app.matatika.com/api/comments/34f43661-440b-40e8-a782-da73a00eed70/history",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/54627567-52ea-4998-8faf-8e317e615449/comments/34f43661-440b-40e8-a782-da73a00eed70",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/34f43661-440b-40e8-a782-da73a00eed70",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/34f43661-440b-40e8-a782-da73a00eed70"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/34f43661-440b-40e8-a782-da73a00eed70/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/34f43661-440b-40e8-a782-da73a00eed70",
"type" : "POST"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/datasets/54627567-52ea-4998-8faf-8e317e615449/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:443/api/comments/71085cea-0e2a-4075-ab0c-0d61c84fe3e2' -i -X GET \
-H 'Accept: application/json, application/javascript, text/javascript, text/json'
Python (requests
)
import requests
url = "https://app.matatika.com:443/api/comments/71085cea-0e2a-4075-ab0c-0d61c84fe3e2"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Comment with HAL links.
{
"id" : "71085cea-0e2a-4075-ab0c-0d61c84fe3e2",
"message" : "SIT-generated reply Pesho [2025-06-19T11:14:11.059815] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-06-19T10:14:11.138841",
"lastModified" : "2025-06-19T10:14:11.138841",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "54627567-52ea-4998-8faf-8e317e615449",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/54627567-52ea-4998-8faf-8e317e615449/comments/71085cea-0e2a-4075-ab0c-0d61c84fe3e2",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/71085cea-0e2a-4075-ab0c-0d61c84fe3e2",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/71085cea-0e2a-4075-ab0c-0d61c84fe3e2"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/71085cea-0e2a-4075-ab0c-0d61c84fe3e2/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/71085cea-0e2a-4075-ab0c-0d61c84fe3e2",
"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:443/api/comments/71085cea-0e2a-4075-ab0c-0d61c84fe3e2/history' -i -X GET \
-H 'Accept: application/json, application/javascript, text/javascript, text/json'
Python (requests
)
import requests
url = "https://app.matatika.com:443/api/comments/71085cea-0e2a-4075-ab0c-0d61c84fe3e2/history"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
[ {
"lastModified" : "2025-06-19T10:14:11.141",
"message" : "SIT-generated reply Pesho [2025-06-19T11:14:11.059815] to ",
"editVersion" : "264202"
}, {
"lastModified" : "2025-06-19T10:14:11.406",
"message" : "SIT-generated reply Pesho [2025-06-19T11:14:11.307412] to ",
"editVersion" : "264203"
} ]
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:443/api/datasets/54627567-52ea-4998-8faf-8e317e615449/comments?parentId=34f43661-440b-40e8-a782-da73a00eed70' -i -X GET \
-H 'Accept: application/json, application/javascript, text/javascript, text/json'
Python (requests
)
import requests
url = "https://app.matatika.com:443/api/datasets/54627567-52ea-4998-8faf-8e317e615449/comments?parentId=34f43661-440b-40e8-a782-da73a00eed70"
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" : "48bf8369-ab24-4fa1-a029-f9b025336a91",
"message" : "SIT-generated reply Pesho [2025-06-19T11:14:08.709444] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-06-19T10:14:08.764855",
"lastModified" : "2025-06-19T10:14:08.764855",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "54627567-52ea-4998-8faf-8e317e615449",
"parentId" : "34f43661-440b-40e8-a782-da73a00eed70",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/54627567-52ea-4998-8faf-8e317e615449/comments/48bf8369-ab24-4fa1-a029-f9b025336a91",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/48bf8369-ab24-4fa1-a029-f9b025336a91",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/48bf8369-ab24-4fa1-a029-f9b025336a91"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/48bf8369-ab24-4fa1-a029-f9b025336a91/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/48bf8369-ab24-4fa1-a029-f9b025336a91",
"type" : "POST"
}
}
}, {
"id" : "6e690d67-cad1-4548-8c1d-dbf1e630e6a1",
"message" : "SIT-generated reply Pesho [2025-06-19T11:14:08.555674] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-06-19T10:14:08.609925",
"lastModified" : "2025-06-19T10:14:08.609926",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "54627567-52ea-4998-8faf-8e317e615449",
"parentId" : "34f43661-440b-40e8-a782-da73a00eed70",
"_links" : {
"edit-history" : {
"href" : "https://app.matatika.com/api/comments/6e690d67-cad1-4548-8c1d-dbf1e630e6a1/history",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/54627567-52ea-4998-8faf-8e317e615449/comments/6e690d67-cad1-4548-8c1d-dbf1e630e6a1",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/6e690d67-cad1-4548-8c1d-dbf1e630e6a1",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/6e690d67-cad1-4548-8c1d-dbf1e630e6a1"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/6e690d67-cad1-4548-8c1d-dbf1e630e6a1/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/6e690d67-cad1-4548-8c1d-dbf1e630e6a1",
"type" : "POST"
}
}
}, {
"id" : "b5181903-f116-4dad-973d-bca733902cef",
"message" : "SIT-generated reply Pesho [2025-06-19T11:14:08.390440] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-06-19T10:14:08.466323",
"lastModified" : "2025-06-19T10:14:08.466323",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "54627567-52ea-4998-8faf-8e317e615449",
"parentId" : "34f43661-440b-40e8-a782-da73a00eed70",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/54627567-52ea-4998-8faf-8e317e615449/comments/b5181903-f116-4dad-973d-bca733902cef",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/b5181903-f116-4dad-973d-bca733902cef",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/b5181903-f116-4dad-973d-bca733902cef"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/b5181903-f116-4dad-973d-bca733902cef/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/b5181903-f116-4dad-973d-bca733902cef",
"type" : "POST"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/datasets/54627567-52ea-4998-8faf-8e317e615449/comments?parentId=34f43661-440b-40e8-a782-da73a00eed70&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:443/api/datasets/54627567-52ea-4998-8faf-8e317e615449/comments' -i -X POST \
-H 'Accept: application/json, application/javascript, text/javascript, text/json' \
-H 'Content-Type: application/json'
Python (requests
)
import requests
url = "https://app.matatika.com:443/api/datasets/54627567-52ea-4998-8faf-8e317e615449/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" : "80998cf1-a3a3-4394-a704-a09b3356c88a",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-06-19T10:14:10.813353326",
"lastModified" : "2025-06-19T10:14:10.813354826",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "54627567-52ea-4998-8faf-8e317e615449",
"_links" : {
"create comment" : {
"href" : "https://app.matatika.com/api/datasets/54627567-52ea-4998-8faf-8e317e615449/comments/80998cf1-a3a3-4394-a704-a09b3356c88a",
"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:443/api/comments/34f43661-440b-40e8-a782-da73a00eed70' -i -X POST \
-H 'Accept: application/json, application/javascript, text/javascript, text/json' \
-H 'Content-Type: application/json'
Python (requests
)
import requests
url = "https://app.matatika.com:443/api/comments/34f43661-440b-40e8-a782-da73a00eed70"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("POST", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Comment with HAL links.
{
"id" : "db77ee72-09bd-4938-9353-d37b6d196b4c",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-06-19T10:14:10.281510438",
"lastModified" : "2025-06-19T10:14:10.281511238",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "54627567-52ea-4998-8faf-8e317e615449",
"parentId" : "34f43661-440b-40e8-a782-da73a00eed70",
"_links" : {
"create comment" : {
"href" : "https://app.matatika.com/api/datasets/54627567-52ea-4998-8faf-8e317e615449/comments/db77ee72-09bd-4938-9353-d37b6d196b4c",
"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-06-19T11:14:09.978781] to ",
"datasetId" : "54627567-52ea-4998-8faf-8e317e615449"
}
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com:443/api/datasets/54627567-52ea-4998-8faf-8e317e615449/comments/69474584-6ae9-421e-967c-7951e5ac75ab' -i -X PUT \
-H 'Accept: application/json, application/javascript, text/javascript, text/json' \
-H 'Content-Type: application/json' \
-d '{
"message" : "SIT-generated reply Pesho [2025-06-19T11:14:09.978781] to ",
"datasetId" : "54627567-52ea-4998-8faf-8e317e615449"
}'
Python (requests
)
import requests
url = "https://app.matatika.com:443/api/datasets/54627567-52ea-4998-8faf-8e317e615449/comments/69474584-6ae9-421e-967c-7951e5ac75ab"
data = {
"message" : "SIT-generated reply Pesho [2025-06-19T11:14:09.978781] to ",
"datasetId" : "54627567-52ea-4998-8faf-8e317e615449"
}
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" : "69474584-6ae9-421e-967c-7951e5ac75ab",
"message" : "SIT-generated reply Pesho [2025-06-19T11:14:09.978781] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-06-19T10:14:10.16429752",
"lastModified" : "2025-06-19T10:14:10.16429822",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "54627567-52ea-4998-8faf-8e317e615449",
"_links" : {
"edit-history" : {
"href" : "https://app.matatika.com/api/comments/69474584-6ae9-421e-967c-7951e5ac75ab/history",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/54627567-52ea-4998-8faf-8e317e615449/comments/69474584-6ae9-421e-967c-7951e5ac75ab",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/69474584-6ae9-421e-967c-7951e5ac75ab",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/69474584-6ae9-421e-967c-7951e5ac75ab"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/69474584-6ae9-421e-967c-7951e5ac75ab/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/69474584-6ae9-421e-967c-7951e5ac75ab",
"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-06-19T11:14:10.852734] to "
}
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com:443/api/comments/71085cea-0e2a-4075-ab0c-0d61c84fe3e2' -i -X GET \
-H 'Accept: application/json, application/javascript, text/javascript, text/json'
Python (requests
)
import requests
url = "https://app.matatika.com:443/api/comments/71085cea-0e2a-4075-ab0c-0d61c84fe3e2"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Comment with HAL links.
{
"id" : "71085cea-0e2a-4075-ab0c-0d61c84fe3e2",
"message" : "SIT-generated reply Pesho [2025-06-19T11:14:11.059815] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-06-19T10:14:11.138841",
"lastModified" : "2025-06-19T10:14:11.138841",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "54627567-52ea-4998-8faf-8e317e615449",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/54627567-52ea-4998-8faf-8e317e615449/comments/71085cea-0e2a-4075-ab0c-0d61c84fe3e2",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/71085cea-0e2a-4075-ab0c-0d61c84fe3e2",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/71085cea-0e2a-4075-ab0c-0d61c84fe3e2"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/71085cea-0e2a-4075-ab0c-0d61c84fe3e2/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/71085cea-0e2a-4075-ab0c-0d61c84fe3e2",
"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:443/api/comments/34f43661-440b-40e8-a782-da73a00eed70/like' -i -X PUT \
-H 'Accept: application/json, application/javascript, text/javascript, text/json' \
-H 'Content-Type: application/json'
Python (requests
)
import requests
url = "https://app.matatika.com:443/api/comments/34f43661-440b-40e8-a782-da73a00eed70/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:443/api/comments/34f43661-440b-40e8-a782-da73a00eed70/like' -i -X DELETE \
-H 'Accept: application/json, application/javascript, text/javascript, text/json'
Python (requests
)
import requests
url = "https://app.matatika.com:443/api/comments/34f43661-440b-40e8-a782-da73a00eed70/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:443/api/comments/3f1acf3e-39a3-4328-af7e-e0cdb2121715' -i -X DELETE \
-H 'Accept: application/json, application/javascript, text/javascript, text/json'
Python (requests
)
import requests
url = "https://app.matatika.com:443/api/comments/3f1acf3e-39a3-4328-af7e-e0cdb2121715"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("DELETE", url, headers=headers)
print(response.text.encode('utf8'))
Response
204 No Content
No response body provided.