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" : "1aa08673-2e60-4f46-b6f5-397203662db9",
"message" : "SIT-generated reply Pesho [2025-05-02T09:53:59.676984] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-05-02T08:53:59.738957",
"lastModified" : "2025-05-02T08:53:59.738957",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "81f9f749-0418-456a-8398-0a674ee8e571",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/81f9f749-0418-456a-8398-0a674ee8e571/comments/1aa08673-2e60-4f46-b6f5-397203662db9",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/1aa08673-2e60-4f46-b6f5-397203662db9",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/1aa08673-2e60-4f46-b6f5-397203662db9"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/1aa08673-2e60-4f46-b6f5-397203662db9/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/1aa08673-2e60-4f46-b6f5-397203662db9",
"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/81f9f749-0418-456a-8398-0a674ee8e571/comments' -i -X GET \
-H 'Content-Type: application/json'
Python (requests
)
import requests
url = "https://app.matatika.com/api/datasets/81f9f749-0418-456a-8398-0a674ee8e571/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" : "bccf7814-daca-4755-bf02-c1317735562f",
"message" : "SIT-generated reply Pesho [2025-05-02T09:53:58.534266] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-05-02T08:53:58.59869",
"lastModified" : "2025-05-02T08:53:58.59869",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "81f9f749-0418-456a-8398-0a674ee8e571",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/81f9f749-0418-456a-8398-0a674ee8e571/comments/bccf7814-daca-4755-bf02-c1317735562f",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/bccf7814-daca-4755-bf02-c1317735562f",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/bccf7814-daca-4755-bf02-c1317735562f"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/bccf7814-daca-4755-bf02-c1317735562f/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/bccf7814-daca-4755-bf02-c1317735562f",
"type" : "POST"
}
}
}, {
"id" : "b30cd48d-faa7-4739-b51e-885d83decf3a",
"message" : "SIT-generated reply Pesho [2025-05-02T09:53:58.382776] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-05-02T08:53:58.43877",
"lastModified" : "2025-05-02T08:53:58.438771",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "81f9f749-0418-456a-8398-0a674ee8e571",
"_links" : {
"edit-history" : {
"href" : "https://app.matatika.com/api/comments/b30cd48d-faa7-4739-b51e-885d83decf3a/history",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/81f9f749-0418-456a-8398-0a674ee8e571/comments/b30cd48d-faa7-4739-b51e-885d83decf3a",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/b30cd48d-faa7-4739-b51e-885d83decf3a",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/b30cd48d-faa7-4739-b51e-885d83decf3a"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/b30cd48d-faa7-4739-b51e-885d83decf3a/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/b30cd48d-faa7-4739-b51e-885d83decf3a",
"type" : "POST"
}
}
}, {
"id" : "fe097f13-d070-4e6b-b6ce-333cce324a6d",
"message" : "SIT-generated reply Pesho [2025-05-02T09:53:58.220003] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-05-02T08:53:58.262413",
"lastModified" : "2025-05-02T08:53:58.262413",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "81f9f749-0418-456a-8398-0a674ee8e571",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/81f9f749-0418-456a-8398-0a674ee8e571/comments/fe097f13-d070-4e6b-b6ce-333cce324a6d",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/fe097f13-d070-4e6b-b6ce-333cce324a6d",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/fe097f13-d070-4e6b-b6ce-333cce324a6d"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/fe097f13-d070-4e6b-b6ce-333cce324a6d/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/fe097f13-d070-4e6b-b6ce-333cce324a6d",
"type" : "POST"
}
}
}, {
"id" : "64aa0e4b-d702-4e6a-88da-d42c83e7479a",
"message" : "SIT-generated reply Pesho [2025-05-02T09:53:56.691096] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-05-02T08:53:56.751398",
"lastModified" : "2025-05-02T08:53:56.751398",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 3,
"datasetId" : "81f9f749-0418-456a-8398-0a674ee8e571",
"_links" : {
"comments" : {
"href" : "https://app.matatika.com/api/datasets/81f9f749-0418-456a-8398-0a674ee8e571/comments?parentId=64aa0e4b-d702-4e6a-88da-d42c83e7479a",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/81f9f749-0418-456a-8398-0a674ee8e571/comments/64aa0e4b-d702-4e6a-88da-d42c83e7479a",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/64aa0e4b-d702-4e6a-88da-d42c83e7479a",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/64aa0e4b-d702-4e6a-88da-d42c83e7479a"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/64aa0e4b-d702-4e6a-88da-d42c83e7479a/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/64aa0e4b-d702-4e6a-88da-d42c83e7479a",
"type" : "POST"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/datasets/81f9f749-0418-456a-8398-0a674ee8e571/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/1aa08673-2e60-4f46-b6f5-397203662db9' -i -X GET \
-H 'Content-Type: application/json'
Python (requests
)
import requests
url = "https://app.matatika.com/api/comments/1aa08673-2e60-4f46-b6f5-397203662db9"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Comment with HAL links.
{
"id" : "1aa08673-2e60-4f46-b6f5-397203662db9",
"message" : "SIT-generated reply Pesho [2025-05-02T09:53:59.676984] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-05-02T08:53:59.738957",
"lastModified" : "2025-05-02T08:53:59.738957",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "81f9f749-0418-456a-8398-0a674ee8e571",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/81f9f749-0418-456a-8398-0a674ee8e571/comments/1aa08673-2e60-4f46-b6f5-397203662db9",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/1aa08673-2e60-4f46-b6f5-397203662db9",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/1aa08673-2e60-4f46-b6f5-397203662db9"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/1aa08673-2e60-4f46-b6f5-397203662db9/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/1aa08673-2e60-4f46-b6f5-397203662db9",
"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/1aa08673-2e60-4f46-b6f5-397203662db9/history' -i -X GET \
-H 'Content-Type: application/json'
Python (requests
)
import requests
url = "https://app.matatika.com/api/comments/1aa08673-2e60-4f46-b6f5-397203662db9/history"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
[ {
"lastModified" : "2025-05-02T08:53:59.742",
"message" : "SIT-generated reply Pesho [2025-05-02T09:53:59.676984] to ",
"editVersion" : "232224"
}, {
"lastModified" : "2025-05-02T08:53:59.926",
"message" : "SIT-generated reply Pesho [2025-05-02T09:53:59.871627] to ",
"editVersion" : "232225"
} ]
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/81f9f749-0418-456a-8398-0a674ee8e571/comments?parentId=64aa0e4b-d702-4e6a-88da-d42c83e7479a' -i -X GET \
-H 'Content-Type: application/json'
Python (requests
)
import requests
url = "https://app.matatika.com/api/datasets/81f9f749-0418-456a-8398-0a674ee8e571/comments?parentId=64aa0e4b-d702-4e6a-88da-d42c83e7479a"
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" : "c234c471-5b85-40a5-97f0-9630a5f85d31",
"message" : "SIT-generated reply Pesho [2025-05-02T09:53:57.447485] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-05-02T08:53:57.516224",
"lastModified" : "2025-05-02T08:53:57.516224",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "81f9f749-0418-456a-8398-0a674ee8e571",
"parentId" : "64aa0e4b-d702-4e6a-88da-d42c83e7479a",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/81f9f749-0418-456a-8398-0a674ee8e571/comments/c234c471-5b85-40a5-97f0-9630a5f85d31",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/c234c471-5b85-40a5-97f0-9630a5f85d31",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/c234c471-5b85-40a5-97f0-9630a5f85d31"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/c234c471-5b85-40a5-97f0-9630a5f85d31/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/c234c471-5b85-40a5-97f0-9630a5f85d31",
"type" : "POST"
}
}
}, {
"id" : "ea91dcb3-4992-429b-a74d-191e30f97cd0",
"message" : "SIT-generated reply Pesho [2025-05-02T09:53:57.308251] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-05-02T08:53:57.363778",
"lastModified" : "2025-05-02T08:53:57.363778",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "81f9f749-0418-456a-8398-0a674ee8e571",
"parentId" : "64aa0e4b-d702-4e6a-88da-d42c83e7479a",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/81f9f749-0418-456a-8398-0a674ee8e571/comments/ea91dcb3-4992-429b-a74d-191e30f97cd0",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/ea91dcb3-4992-429b-a74d-191e30f97cd0",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/ea91dcb3-4992-429b-a74d-191e30f97cd0"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/ea91dcb3-4992-429b-a74d-191e30f97cd0/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/ea91dcb3-4992-429b-a74d-191e30f97cd0",
"type" : "POST"
}
}
}, {
"id" : "c2db8356-003d-496a-b6e7-79824e80c346",
"message" : "SIT-generated reply Pesho [2025-05-02T09:53:57.180279] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-05-02T08:53:57.2359",
"lastModified" : "2025-05-02T08:53:57.2359",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "81f9f749-0418-456a-8398-0a674ee8e571",
"parentId" : "64aa0e4b-d702-4e6a-88da-d42c83e7479a",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/81f9f749-0418-456a-8398-0a674ee8e571/comments/c2db8356-003d-496a-b6e7-79824e80c346",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/c2db8356-003d-496a-b6e7-79824e80c346",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/c2db8356-003d-496a-b6e7-79824e80c346"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/c2db8356-003d-496a-b6e7-79824e80c346/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/c2db8356-003d-496a-b6e7-79824e80c346",
"type" : "POST"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/datasets/81f9f749-0418-456a-8398-0a674ee8e571/comments?parentId=64aa0e4b-d702-4e6a-88da-d42c83e7479a&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/81f9f749-0418-456a-8398-0a674ee8e571/comments' -i -X POST \
-H 'Content-Type: application/json'
Python (requests
)
import requests
url = "https://app.matatika.com/api/datasets/81f9f749-0418-456a-8398-0a674ee8e571/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" : "1e653e13-8de7-4cee-8760-750139a1d3ca",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-05-02T08:53:59.441638186",
"lastModified" : "2025-05-02T08:53:59.441638586",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "81f9f749-0418-456a-8398-0a674ee8e571",
"_links" : {
"create comment" : {
"href" : "https://app.matatika.com/api/datasets/81f9f749-0418-456a-8398-0a674ee8e571/comments/1e653e13-8de7-4cee-8760-750139a1d3ca",
"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/64aa0e4b-d702-4e6a-88da-d42c83e7479a' -i -X POST \
-H 'Content-Type: application/json'
Python (requests
)
import requests
url = "https://app.matatika.com/api/comments/64aa0e4b-d702-4e6a-88da-d42c83e7479a"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("POST", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Comment with HAL links.
{
"id" : "3c296c89-7517-4846-bde8-a74aa68021ec",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-05-02T08:53:59.014615155",
"lastModified" : "2025-05-02T08:53:59.014615555",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "81f9f749-0418-456a-8398-0a674ee8e571",
"parentId" : "64aa0e4b-d702-4e6a-88da-d42c83e7479a",
"_links" : {
"create comment" : {
"href" : "https://app.matatika.com/api/datasets/81f9f749-0418-456a-8398-0a674ee8e571/comments/3c296c89-7517-4846-bde8-a74aa68021ec",
"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-05-02T09:53:58.724054] to ",
"datasetId" : "81f9f749-0418-456a-8398-0a674ee8e571"
}
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/datasets/81f9f749-0418-456a-8398-0a674ee8e571/comments/9bce2c51-5eaf-4e61-b319-3ff98168a59b' -i -X PUT \
-H 'Content-Type: application/json' \
-d '{
"message" : "SIT-generated reply Pesho [2025-05-02T09:53:58.724054] to ",
"datasetId" : "81f9f749-0418-456a-8398-0a674ee8e571"
}'
Python (requests
)
import requests
url = "https://app.matatika.com/api/datasets/81f9f749-0418-456a-8398-0a674ee8e571/comments/9bce2c51-5eaf-4e61-b319-3ff98168a59b"
data = {
"message" : "SIT-generated reply Pesho [2025-05-02T09:53:58.724054] to ",
"datasetId" : "81f9f749-0418-456a-8398-0a674ee8e571"
}
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" : "9bce2c51-5eaf-4e61-b319-3ff98168a59b",
"message" : "SIT-generated reply Pesho [2025-05-02T09:53:58.724054] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-05-02T08:53:58.887440443",
"lastModified" : "2025-05-02T08:53:58.887440743",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "81f9f749-0418-456a-8398-0a674ee8e571",
"_links" : {
"edit-history" : {
"href" : "https://app.matatika.com/api/comments/9bce2c51-5eaf-4e61-b319-3ff98168a59b/history",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/81f9f749-0418-456a-8398-0a674ee8e571/comments/9bce2c51-5eaf-4e61-b319-3ff98168a59b",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/9bce2c51-5eaf-4e61-b319-3ff98168a59b",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/9bce2c51-5eaf-4e61-b319-3ff98168a59b"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/9bce2c51-5eaf-4e61-b319-3ff98168a59b/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/9bce2c51-5eaf-4e61-b319-3ff98168a59b",
"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-05-02T09:53:59.472928] to "
}
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/comments/1aa08673-2e60-4f46-b6f5-397203662db9' -i -X GET \
-H 'Content-Type: application/json'
Python (requests
)
import requests
url = "https://app.matatika.com/api/comments/1aa08673-2e60-4f46-b6f5-397203662db9"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Comment with HAL links.
{
"id" : "1aa08673-2e60-4f46-b6f5-397203662db9",
"message" : "SIT-generated reply Pesho [2025-05-02T09:53:59.676984] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-05-02T08:53:59.738957",
"lastModified" : "2025-05-02T08:53:59.738957",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "81f9f749-0418-456a-8398-0a674ee8e571",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/81f9f749-0418-456a-8398-0a674ee8e571/comments/1aa08673-2e60-4f46-b6f5-397203662db9",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/1aa08673-2e60-4f46-b6f5-397203662db9",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/1aa08673-2e60-4f46-b6f5-397203662db9"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/1aa08673-2e60-4f46-b6f5-397203662db9/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/1aa08673-2e60-4f46-b6f5-397203662db9",
"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/64aa0e4b-d702-4e6a-88da-d42c83e7479a/like' -i -X PUT \
-H 'Content-Type: application/json'
Python (requests
)
import requests
url = "https://app.matatika.com/api/comments/64aa0e4b-d702-4e6a-88da-d42c83e7479a/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/64aa0e4b-d702-4e6a-88da-d42c83e7479a/like' -i -X DELETE \
-H 'Content-Type: application/json'
Python (requests
)
import requests
url = "https://app.matatika.com/api/comments/64aa0e4b-d702-4e6a-88da-d42c83e7479a/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/581d740e-8c23-40cf-8341-e5d0e4dd0594' -i -X DELETE \
-H 'Content-Type: application/json'
Python (requests
)
import requests
url = "https://app.matatika.com/api/comments/581d740e-8c23-40cf-8341-e5d0e4dd0594"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("DELETE", url, headers=headers)
print(response.text.encode('utf8'))
Response
204 No Content
No response body provided.