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" : "b89d8626-705d-473e-9ce3-395d3cb8e36e",
"message" : "SIT-generated reply Pesho [2026-01-11T19:00:46.392963355] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2026-01-11T19:00:46.428907",
"lastModified" : "2026-01-11T19:00:46.428907",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "999df1e0-6cc6-40cc-b8ce-c8ad43a917d0",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/999df1e0-6cc6-40cc-b8ce-c8ad43a917d0/comments/b89d8626-705d-473e-9ce3-395d3cb8e36e",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/b89d8626-705d-473e-9ce3-395d3cb8e36e",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/b89d8626-705d-473e-9ce3-395d3cb8e36e"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/b89d8626-705d-473e-9ce3-395d3cb8e36e/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/b89d8626-705d-473e-9ce3-395d3cb8e36e",
"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/999df1e0-6cc6-40cc-b8ce-c8ad43a917d0/comments' -i -X GET
Python (requests)
import requests
url = "https://app.matatika.com/api/datasets/999df1e0-6cc6-40cc-b8ce-c8ad43a917d0/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" : "bf71d1ec-d611-466a-a3d1-e4f657223092",
"message" : "SIT-generated reply Pesho [2026-01-11T19:00:45.746274308] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2026-01-11T19:00:45.774916",
"lastModified" : "2026-01-11T19:00:45.774916",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "999df1e0-6cc6-40cc-b8ce-c8ad43a917d0",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/999df1e0-6cc6-40cc-b8ce-c8ad43a917d0/comments/bf71d1ec-d611-466a-a3d1-e4f657223092",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/bf71d1ec-d611-466a-a3d1-e4f657223092",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/bf71d1ec-d611-466a-a3d1-e4f657223092"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/bf71d1ec-d611-466a-a3d1-e4f657223092/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/bf71d1ec-d611-466a-a3d1-e4f657223092",
"type" : "POST"
}
}
}, {
"id" : "ecf7203a-9431-4061-8afe-c167eb9ab647",
"message" : "SIT-generated reply Pesho [2026-01-11T19:00:45.661959928] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2026-01-11T19:00:45.69538",
"lastModified" : "2026-01-11T19:00:45.695381",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "999df1e0-6cc6-40cc-b8ce-c8ad43a917d0",
"_links" : {
"edit-history" : {
"href" : "https://app.matatika.com/api/comments/ecf7203a-9431-4061-8afe-c167eb9ab647/history",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/999df1e0-6cc6-40cc-b8ce-c8ad43a917d0/comments/ecf7203a-9431-4061-8afe-c167eb9ab647",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/ecf7203a-9431-4061-8afe-c167eb9ab647",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/ecf7203a-9431-4061-8afe-c167eb9ab647"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/ecf7203a-9431-4061-8afe-c167eb9ab647/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/ecf7203a-9431-4061-8afe-c167eb9ab647",
"type" : "POST"
}
}
}, {
"id" : "efb0410e-8526-4f23-b7f8-6840268388a3",
"message" : "SIT-generated reply Pesho [2026-01-11T19:00:45.573397163] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2026-01-11T19:00:45.605639",
"lastModified" : "2026-01-11T19:00:45.605639",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "999df1e0-6cc6-40cc-b8ce-c8ad43a917d0",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/999df1e0-6cc6-40cc-b8ce-c8ad43a917d0/comments/efb0410e-8526-4f23-b7f8-6840268388a3",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/efb0410e-8526-4f23-b7f8-6840268388a3",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/efb0410e-8526-4f23-b7f8-6840268388a3"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/efb0410e-8526-4f23-b7f8-6840268388a3/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/efb0410e-8526-4f23-b7f8-6840268388a3",
"type" : "POST"
}
}
}, {
"id" : "b6e8b48e-7d43-49f0-8de2-d17635f459b9",
"message" : "SIT-generated reply Pesho [2026-01-11T19:00:44.606212137] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2026-01-11T19:00:44.640452",
"lastModified" : "2026-01-11T19:00:44.640452",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 3,
"datasetId" : "999df1e0-6cc6-40cc-b8ce-c8ad43a917d0",
"_links" : {
"comments" : {
"href" : "https://app.matatika.com/api/datasets/999df1e0-6cc6-40cc-b8ce-c8ad43a917d0/comments?parentId=b6e8b48e-7d43-49f0-8de2-d17635f459b9",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/999df1e0-6cc6-40cc-b8ce-c8ad43a917d0/comments/b6e8b48e-7d43-49f0-8de2-d17635f459b9",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/b6e8b48e-7d43-49f0-8de2-d17635f459b9",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/b6e8b48e-7d43-49f0-8de2-d17635f459b9"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/b6e8b48e-7d43-49f0-8de2-d17635f459b9/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/b6e8b48e-7d43-49f0-8de2-d17635f459b9",
"type" : "POST"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/datasets/999df1e0-6cc6-40cc-b8ce-c8ad43a917d0/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/b89d8626-705d-473e-9ce3-395d3cb8e36e' -i -X GET
Python (requests)
import requests
url = "https://app.matatika.com/api/comments/b89d8626-705d-473e-9ce3-395d3cb8e36e"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Comment with HAL links.
{
"id" : "b89d8626-705d-473e-9ce3-395d3cb8e36e",
"message" : "SIT-generated reply Pesho [2026-01-11T19:00:46.392963355] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2026-01-11T19:00:46.428907",
"lastModified" : "2026-01-11T19:00:46.428907",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "999df1e0-6cc6-40cc-b8ce-c8ad43a917d0",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/999df1e0-6cc6-40cc-b8ce-c8ad43a917d0/comments/b89d8626-705d-473e-9ce3-395d3cb8e36e",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/b89d8626-705d-473e-9ce3-395d3cb8e36e",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/b89d8626-705d-473e-9ce3-395d3cb8e36e"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/b89d8626-705d-473e-9ce3-395d3cb8e36e/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/b89d8626-705d-473e-9ce3-395d3cb8e36e",
"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/b89d8626-705d-473e-9ce3-395d3cb8e36e/history' -i -X GET
Python (requests)
import requests
url = "https://app.matatika.com/api/comments/b89d8626-705d-473e-9ce3-395d3cb8e36e/history"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
[ {
"lastModified" : "2026-01-11T19:00:46.432",
"message" : "SIT-generated reply Pesho [2026-01-11T19:00:46.392963355] to ",
"editVersion" : "577018"
}, {
"lastModified" : "2026-01-11T19:00:46.547",
"message" : "SIT-generated reply Pesho [2026-01-11T19:00:46.510819680] to ",
"editVersion" : "577019"
} ]
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/999df1e0-6cc6-40cc-b8ce-c8ad43a917d0/comments?parentId=b6e8b48e-7d43-49f0-8de2-d17635f459b9' -i -X GET
Python (requests)
import requests
url = "https://app.matatika.com/api/datasets/999df1e0-6cc6-40cc-b8ce-c8ad43a917d0/comments?parentId=b6e8b48e-7d43-49f0-8de2-d17635f459b9"
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" : "5bd6193a-0255-421a-a4ff-672c0c5a73ad",
"message" : "SIT-generated reply Pesho [2026-01-11T19:00:45.098123246] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2026-01-11T19:00:45.131265",
"lastModified" : "2026-01-11T19:00:45.131265",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "999df1e0-6cc6-40cc-b8ce-c8ad43a917d0",
"parentId" : "b6e8b48e-7d43-49f0-8de2-d17635f459b9",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/999df1e0-6cc6-40cc-b8ce-c8ad43a917d0/comments/5bd6193a-0255-421a-a4ff-672c0c5a73ad",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/5bd6193a-0255-421a-a4ff-672c0c5a73ad",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/5bd6193a-0255-421a-a4ff-672c0c5a73ad"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/5bd6193a-0255-421a-a4ff-672c0c5a73ad/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/5bd6193a-0255-421a-a4ff-672c0c5a73ad",
"type" : "POST"
}
}
}, {
"id" : "e3e32f18-c830-4306-ad57-ee684fd849ad",
"message" : "SIT-generated reply Pesho [2026-01-11T19:00:45.012401895] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2026-01-11T19:00:45.041879",
"lastModified" : "2026-01-11T19:00:45.04188",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "999df1e0-6cc6-40cc-b8ce-c8ad43a917d0",
"parentId" : "b6e8b48e-7d43-49f0-8de2-d17635f459b9",
"_links" : {
"edit-history" : {
"href" : "https://app.matatika.com/api/comments/e3e32f18-c830-4306-ad57-ee684fd849ad/history",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/999df1e0-6cc6-40cc-b8ce-c8ad43a917d0/comments/e3e32f18-c830-4306-ad57-ee684fd849ad",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/e3e32f18-c830-4306-ad57-ee684fd849ad",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/e3e32f18-c830-4306-ad57-ee684fd849ad"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/e3e32f18-c830-4306-ad57-ee684fd849ad/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/e3e32f18-c830-4306-ad57-ee684fd849ad",
"type" : "POST"
}
}
}, {
"id" : "eacdc5ae-c367-41c4-b7f5-9a00e5090ad5",
"message" : "SIT-generated reply Pesho [2026-01-11T19:00:44.924474591] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2026-01-11T19:00:44.957779",
"lastModified" : "2026-01-11T19:00:44.957779",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "999df1e0-6cc6-40cc-b8ce-c8ad43a917d0",
"parentId" : "b6e8b48e-7d43-49f0-8de2-d17635f459b9",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/999df1e0-6cc6-40cc-b8ce-c8ad43a917d0/comments/eacdc5ae-c367-41c4-b7f5-9a00e5090ad5",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/eacdc5ae-c367-41c4-b7f5-9a00e5090ad5",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/eacdc5ae-c367-41c4-b7f5-9a00e5090ad5"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/eacdc5ae-c367-41c4-b7f5-9a00e5090ad5/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/eacdc5ae-c367-41c4-b7f5-9a00e5090ad5",
"type" : "POST"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/datasets/999df1e0-6cc6-40cc-b8ce-c8ad43a917d0/comments?parentId=b6e8b48e-7d43-49f0-8de2-d17635f459b9&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/999df1e0-6cc6-40cc-b8ce-c8ad43a917d0/comments' -i -X POST \
-H 'Content-Type: application/json'
Python (requests)
import requests
url = "https://app.matatika.com/api/datasets/999df1e0-6cc6-40cc-b8ce-c8ad43a917d0/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" : "28ab9850-fca9-4a73-8cdb-e8381c428334",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2026-01-11T19:00:46.245779202",
"lastModified" : "2026-01-11T19:00:46.245779402",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "999df1e0-6cc6-40cc-b8ce-c8ad43a917d0",
"_links" : {
"create comment" : {
"href" : "https://app.matatika.com/api/datasets/999df1e0-6cc6-40cc-b8ce-c8ad43a917d0/comments/28ab9850-fca9-4a73-8cdb-e8381c428334",
"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/b6e8b48e-7d43-49f0-8de2-d17635f459b9' -i -X POST \
-H 'Content-Type: application/json'
Python (requests)
import requests
url = "https://app.matatika.com/api/comments/b6e8b48e-7d43-49f0-8de2-d17635f459b9"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("POST", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Comment with HAL links.
{
"id" : "6b3dd539-5558-47ee-bb97-7af82beda987",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2026-01-11T19:00:46.002824095",
"lastModified" : "2026-01-11T19:00:46.002824495",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "999df1e0-6cc6-40cc-b8ce-c8ad43a917d0",
"parentId" : "b6e8b48e-7d43-49f0-8de2-d17635f459b9",
"_links" : {
"create comment" : {
"href" : "https://app.matatika.com/api/datasets/999df1e0-6cc6-40cc-b8ce-c8ad43a917d0/comments/6b3dd539-5558-47ee-bb97-7af82beda987",
"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 [2026-01-11T19:00:45.845682407] to ",
"datasetId" : "999df1e0-6cc6-40cc-b8ce-c8ad43a917d0"
}
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/datasets/999df1e0-6cc6-40cc-b8ce-c8ad43a917d0/comments/bfd201cd-33ee-44b6-be5d-6274334953b7' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"message" : "SIT-generated reply Pesho [2026-01-11T19:00:45.845682407] to ",
"datasetId" : "999df1e0-6cc6-40cc-b8ce-c8ad43a917d0"
}'
Python (requests)
import requests
url = "https://app.matatika.com/api/datasets/999df1e0-6cc6-40cc-b8ce-c8ad43a917d0/comments/bfd201cd-33ee-44b6-be5d-6274334953b7"
data = {
"message" : "SIT-generated reply Pesho [2026-01-11T19:00:45.845682407] to ",
"datasetId" : "999df1e0-6cc6-40cc-b8ce-c8ad43a917d0"
}
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" : "bfd201cd-33ee-44b6-be5d-6274334953b7",
"message" : "SIT-generated reply Pesho [2026-01-11T19:00:45.845682407] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2026-01-11T19:00:45.928522723",
"lastModified" : "2026-01-11T19:00:45.928523023",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "999df1e0-6cc6-40cc-b8ce-c8ad43a917d0",
"_links" : {
"edit-history" : {
"href" : "https://app.matatika.com/api/comments/bfd201cd-33ee-44b6-be5d-6274334953b7/history",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/999df1e0-6cc6-40cc-b8ce-c8ad43a917d0/comments/bfd201cd-33ee-44b6-be5d-6274334953b7",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/bfd201cd-33ee-44b6-be5d-6274334953b7",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/bfd201cd-33ee-44b6-be5d-6274334953b7"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/bfd201cd-33ee-44b6-be5d-6274334953b7/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/bfd201cd-33ee-44b6-be5d-6274334953b7",
"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 [2026-01-11T19:00:46.262617723] to "
}
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/comments/b89d8626-705d-473e-9ce3-395d3cb8e36e' -i -X GET
Python (requests)
import requests
url = "https://app.matatika.com/api/comments/b89d8626-705d-473e-9ce3-395d3cb8e36e"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Comment with HAL links.
{
"id" : "b89d8626-705d-473e-9ce3-395d3cb8e36e",
"message" : "SIT-generated reply Pesho [2026-01-11T19:00:46.392963355] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2026-01-11T19:00:46.428907",
"lastModified" : "2026-01-11T19:00:46.428907",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "999df1e0-6cc6-40cc-b8ce-c8ad43a917d0",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/999df1e0-6cc6-40cc-b8ce-c8ad43a917d0/comments/b89d8626-705d-473e-9ce3-395d3cb8e36e",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/b89d8626-705d-473e-9ce3-395d3cb8e36e",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/b89d8626-705d-473e-9ce3-395d3cb8e36e"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/b89d8626-705d-473e-9ce3-395d3cb8e36e/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/b89d8626-705d-473e-9ce3-395d3cb8e36e",
"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/b6e8b48e-7d43-49f0-8de2-d17635f459b9/like' -i -X PUT \
-H 'Content-Type: application/json'
Python (requests)
import requests
url = "https://app.matatika.com/api/comments/b6e8b48e-7d43-49f0-8de2-d17635f459b9/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/b6e8b48e-7d43-49f0-8de2-d17635f459b9/like' -i -X DELETE
Python (requests)
import requests
url = "https://app.matatika.com/api/comments/b6e8b48e-7d43-49f0-8de2-d17635f459b9/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/70876a95-daf8-4c2c-883c-ba6aa1607ed8' -i -X DELETE
Python (requests)
import requests
url = "https://app.matatika.com/api/comments/70876a95-daf8-4c2c-883c-ba6aa1607ed8"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("DELETE", url, headers=headers)
print(response.text.encode('utf8'))
Response
204 No Content
No response body provided.