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" : "2dbe250c-701a-434d-9a83-5e9c4386e431",
"message" : "SIT-generated reply Pesho [2025-04-10T11:55:49.186748] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-04-10T10:55:49.251726",
"lastModified" : "2025-04-10T10:55:49.251727",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "22973393-44b2-46ed-89d7-1b120c55a126",
"_links" : {
"edit-history" : {
"href" : "https://app.matatika.com/api/comments/2dbe250c-701a-434d-9a83-5e9c4386e431/history",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/22973393-44b2-46ed-89d7-1b120c55a126/comments/2dbe250c-701a-434d-9a83-5e9c4386e431",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/2dbe250c-701a-434d-9a83-5e9c4386e431",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/2dbe250c-701a-434d-9a83-5e9c4386e431"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/2dbe250c-701a-434d-9a83-5e9c4386e431/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/2dbe250c-701a-434d-9a83-5e9c4386e431",
"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/22973393-44b2-46ed-89d7-1b120c55a126/comments' -i -X GET \
-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/22973393-44b2-46ed-89d7-1b120c55a126/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" : "4f7f2e7f-7119-41e7-8cd0-edba0ef6f558",
"message" : "SIT-generated reply Pesho [2025-04-10T11:55:48.002050] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-04-10T10:55:48.034748",
"lastModified" : "2025-04-10T10:55:48.034749",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "22973393-44b2-46ed-89d7-1b120c55a126",
"_links" : {
"edit-history" : {
"href" : "https://app.matatika.com/api/comments/4f7f2e7f-7119-41e7-8cd0-edba0ef6f558/history",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/22973393-44b2-46ed-89d7-1b120c55a126/comments/4f7f2e7f-7119-41e7-8cd0-edba0ef6f558",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/4f7f2e7f-7119-41e7-8cd0-edba0ef6f558",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/4f7f2e7f-7119-41e7-8cd0-edba0ef6f558"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/4f7f2e7f-7119-41e7-8cd0-edba0ef6f558/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/4f7f2e7f-7119-41e7-8cd0-edba0ef6f558",
"type" : "POST"
}
}
}, {
"id" : "ae5158ea-0fb0-4929-8945-c88d26b5b06f",
"message" : "SIT-generated reply Pesho [2025-04-10T11:55:47.892512] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-04-10T10:55:47.936859",
"lastModified" : "2025-04-10T10:55:47.936859",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "22973393-44b2-46ed-89d7-1b120c55a126",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/22973393-44b2-46ed-89d7-1b120c55a126/comments/ae5158ea-0fb0-4929-8945-c88d26b5b06f",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/ae5158ea-0fb0-4929-8945-c88d26b5b06f",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/ae5158ea-0fb0-4929-8945-c88d26b5b06f"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/ae5158ea-0fb0-4929-8945-c88d26b5b06f/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/ae5158ea-0fb0-4929-8945-c88d26b5b06f",
"type" : "POST"
}
}
}, {
"id" : "4823f19c-8408-4230-8d64-c1736d41046f",
"message" : "SIT-generated reply Pesho [2025-04-10T11:55:47.792016] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-04-10T10:55:47.82912",
"lastModified" : "2025-04-10T10:55:47.82912",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "22973393-44b2-46ed-89d7-1b120c55a126",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/22973393-44b2-46ed-89d7-1b120c55a126/comments/4823f19c-8408-4230-8d64-c1736d41046f",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/4823f19c-8408-4230-8d64-c1736d41046f",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/4823f19c-8408-4230-8d64-c1736d41046f"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/4823f19c-8408-4230-8d64-c1736d41046f/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/4823f19c-8408-4230-8d64-c1736d41046f",
"type" : "POST"
}
}
}, {
"id" : "62b471c1-20b4-4fd6-a26c-ef914527de65",
"message" : "SIT-generated reply Pesho [2025-04-10T11:55:46.592669] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-04-10T10:55:46.637897",
"lastModified" : "2025-04-10T10:55:46.637897",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 3,
"datasetId" : "22973393-44b2-46ed-89d7-1b120c55a126",
"_links" : {
"comments" : {
"href" : "https://app.matatika.com/api/datasets/22973393-44b2-46ed-89d7-1b120c55a126/comments?parentId=62b471c1-20b4-4fd6-a26c-ef914527de65",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/22973393-44b2-46ed-89d7-1b120c55a126/comments/62b471c1-20b4-4fd6-a26c-ef914527de65",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/62b471c1-20b4-4fd6-a26c-ef914527de65",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/62b471c1-20b4-4fd6-a26c-ef914527de65"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/62b471c1-20b4-4fd6-a26c-ef914527de65/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/62b471c1-20b4-4fd6-a26c-ef914527de65",
"type" : "POST"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/datasets/22973393-44b2-46ed-89d7-1b120c55a126/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/2dbe250c-701a-434d-9a83-5e9c4386e431' -i -X GET \
-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/2dbe250c-701a-434d-9a83-5e9c4386e431"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Comment with HAL links.
{
"id" : "2dbe250c-701a-434d-9a83-5e9c4386e431",
"message" : "SIT-generated reply Pesho [2025-04-10T11:55:49.186748] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-04-10T10:55:49.251726",
"lastModified" : "2025-04-10T10:55:49.251727",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "22973393-44b2-46ed-89d7-1b120c55a126",
"_links" : {
"edit-history" : {
"href" : "https://app.matatika.com/api/comments/2dbe250c-701a-434d-9a83-5e9c4386e431/history",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/22973393-44b2-46ed-89d7-1b120c55a126/comments/2dbe250c-701a-434d-9a83-5e9c4386e431",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/2dbe250c-701a-434d-9a83-5e9c4386e431",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/2dbe250c-701a-434d-9a83-5e9c4386e431"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/2dbe250c-701a-434d-9a83-5e9c4386e431/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/2dbe250c-701a-434d-9a83-5e9c4386e431",
"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/2dbe250c-701a-434d-9a83-5e9c4386e431/history' -i -X GET \
-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/2dbe250c-701a-434d-9a83-5e9c4386e431/history"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
[ {
"lastModified" : "2025-04-10T10:55:49.254",
"message" : "SIT-generated reply Pesho [2025-04-10T11:55:49.186748] to ",
"editVersion" : "222747"
}, {
"lastModified" : "2025-04-10T10:55:49.433",
"message" : "SIT-generated reply Pesho [2025-04-10T11:55:49.363167] to ",
"editVersion" : "222748"
} ]
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/22973393-44b2-46ed-89d7-1b120c55a126/comments?parentId=62b471c1-20b4-4fd6-a26c-ef914527de65' -i -X GET \
-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/22973393-44b2-46ed-89d7-1b120c55a126/comments?parentId=62b471c1-20b4-4fd6-a26c-ef914527de65"
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" : "923f54c1-55c9-4299-97a5-f7298f60e4b2",
"message" : "SIT-generated reply Pesho [2025-04-10T11:55:47.200048] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-04-10T10:55:47.241244",
"lastModified" : "2025-04-10T10:55:47.241244",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "22973393-44b2-46ed-89d7-1b120c55a126",
"parentId" : "62b471c1-20b4-4fd6-a26c-ef914527de65",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/22973393-44b2-46ed-89d7-1b120c55a126/comments/923f54c1-55c9-4299-97a5-f7298f60e4b2",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/923f54c1-55c9-4299-97a5-f7298f60e4b2",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/923f54c1-55c9-4299-97a5-f7298f60e4b2"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/923f54c1-55c9-4299-97a5-f7298f60e4b2/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/923f54c1-55c9-4299-97a5-f7298f60e4b2",
"type" : "POST"
}
}
}, {
"id" : "f674bbd6-f5f8-4759-bb3c-0484f4e5de88",
"message" : "SIT-generated reply Pesho [2025-04-10T11:55:47.088362] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-04-10T10:55:47.12906",
"lastModified" : "2025-04-10T10:55:47.12906",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "22973393-44b2-46ed-89d7-1b120c55a126",
"parentId" : "62b471c1-20b4-4fd6-a26c-ef914527de65",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/22973393-44b2-46ed-89d7-1b120c55a126/comments/f674bbd6-f5f8-4759-bb3c-0484f4e5de88",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/f674bbd6-f5f8-4759-bb3c-0484f4e5de88",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/f674bbd6-f5f8-4759-bb3c-0484f4e5de88"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/f674bbd6-f5f8-4759-bb3c-0484f4e5de88/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/f674bbd6-f5f8-4759-bb3c-0484f4e5de88",
"type" : "POST"
}
}
}, {
"id" : "814808b0-3e44-48f9-8884-5dd64cca3934",
"message" : "SIT-generated reply Pesho [2025-04-10T11:55:46.987124] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-04-10T10:55:47.024641",
"lastModified" : "2025-04-10T10:55:47.024642",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "22973393-44b2-46ed-89d7-1b120c55a126",
"parentId" : "62b471c1-20b4-4fd6-a26c-ef914527de65",
"_links" : {
"edit-history" : {
"href" : "https://app.matatika.com/api/comments/814808b0-3e44-48f9-8884-5dd64cca3934/history",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/22973393-44b2-46ed-89d7-1b120c55a126/comments/814808b0-3e44-48f9-8884-5dd64cca3934",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/814808b0-3e44-48f9-8884-5dd64cca3934",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/814808b0-3e44-48f9-8884-5dd64cca3934"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/814808b0-3e44-48f9-8884-5dd64cca3934/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/814808b0-3e44-48f9-8884-5dd64cca3934",
"type" : "POST"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/datasets/22973393-44b2-46ed-89d7-1b120c55a126/comments?parentId=62b471c1-20b4-4fd6-a26c-ef914527de65&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/22973393-44b2-46ed-89d7-1b120c55a126/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/22973393-44b2-46ed-89d7-1b120c55a126/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" : "e730b482-e785-4744-aeb6-5056ec7ac440",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-04-10T10:55:48.956970154",
"lastModified" : "2025-04-10T10:55:48.956970454",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "22973393-44b2-46ed-89d7-1b120c55a126",
"_links" : {
"create comment" : {
"href" : "https://app.matatika.com/api/datasets/22973393-44b2-46ed-89d7-1b120c55a126/comments/e730b482-e785-4744-aeb6-5056ec7ac440",
"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/62b471c1-20b4-4fd6-a26c-ef914527de65' -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/62b471c1-20b4-4fd6-a26c-ef914527de65"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("POST", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Comment with HAL links.
{
"id" : "b7f001b4-021a-409e-86b3-0ee7cf9ea46c",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-04-10T10:55:48.338866979",
"lastModified" : "2025-04-10T10:55:48.338867379",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "22973393-44b2-46ed-89d7-1b120c55a126",
"parentId" : "62b471c1-20b4-4fd6-a26c-ef914527de65",
"_links" : {
"create comment" : {
"href" : "https://app.matatika.com/api/datasets/22973393-44b2-46ed-89d7-1b120c55a126/comments/b7f001b4-021a-409e-86b3-0ee7cf9ea46c",
"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-04-10T11:55:48.112267] to ",
"datasetId" : "22973393-44b2-46ed-89d7-1b120c55a126"
}
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com:443/api/datasets/22973393-44b2-46ed-89d7-1b120c55a126/comments/5a8d8652-fa02-46a3-9d63-10ddf94098f8' -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-04-10T11:55:48.112267] to ",
"datasetId" : "22973393-44b2-46ed-89d7-1b120c55a126"
}'
Python (requests
)
import requests
url = "https://app.matatika.com:443/api/datasets/22973393-44b2-46ed-89d7-1b120c55a126/comments/5a8d8652-fa02-46a3-9d63-10ddf94098f8"
data = {
"message" : "SIT-generated reply Pesho [2025-04-10T11:55:48.112267] to ",
"datasetId" : "22973393-44b2-46ed-89d7-1b120c55a126"
}
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" : "5a8d8652-fa02-46a3-9d63-10ddf94098f8",
"message" : "SIT-generated reply Pesho [2025-04-10T11:55:48.112267] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-04-10T10:55:48.252609836",
"lastModified" : "2025-04-10T10:55:48.252610136",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "22973393-44b2-46ed-89d7-1b120c55a126",
"_links" : {
"edit-history" : {
"href" : "https://app.matatika.com/api/comments/5a8d8652-fa02-46a3-9d63-10ddf94098f8/history",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/22973393-44b2-46ed-89d7-1b120c55a126/comments/5a8d8652-fa02-46a3-9d63-10ddf94098f8",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/5a8d8652-fa02-46a3-9d63-10ddf94098f8",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/5a8d8652-fa02-46a3-9d63-10ddf94098f8"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/5a8d8652-fa02-46a3-9d63-10ddf94098f8/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/5a8d8652-fa02-46a3-9d63-10ddf94098f8",
"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-04-10T11:55:48.992906] to "
}
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com:443/api/comments/2dbe250c-701a-434d-9a83-5e9c4386e431' -i -X GET \
-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/2dbe250c-701a-434d-9a83-5e9c4386e431"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Comment with HAL links.
{
"id" : "2dbe250c-701a-434d-9a83-5e9c4386e431",
"message" : "SIT-generated reply Pesho [2025-04-10T11:55:49.186748] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-04-10T10:55:49.251726",
"lastModified" : "2025-04-10T10:55:49.251727",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "22973393-44b2-46ed-89d7-1b120c55a126",
"_links" : {
"edit-history" : {
"href" : "https://app.matatika.com/api/comments/2dbe250c-701a-434d-9a83-5e9c4386e431/history",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/22973393-44b2-46ed-89d7-1b120c55a126/comments/2dbe250c-701a-434d-9a83-5e9c4386e431",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/2dbe250c-701a-434d-9a83-5e9c4386e431",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/2dbe250c-701a-434d-9a83-5e9c4386e431"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/2dbe250c-701a-434d-9a83-5e9c4386e431/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/2dbe250c-701a-434d-9a83-5e9c4386e431",
"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/62b471c1-20b4-4fd6-a26c-ef914527de65/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/62b471c1-20b4-4fd6-a26c-ef914527de65/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/62b471c1-20b4-4fd6-a26c-ef914527de65/like' -i -X DELETE \
-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/62b471c1-20b4-4fd6-a26c-ef914527de65/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/2cade9aa-f0d8-404c-aa94-bcb3964eb64f' -i -X DELETE \
-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/2cade9aa-f0d8-404c-aa94-bcb3964eb64f"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("DELETE", url, headers=headers)
print(response.text.encode('utf8'))
Response
204 No Content
No response body provided.