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" : "87efcc3c-5c8d-4dbd-8a58-bb94982bbcb9",
"message" : "SIT-generated reply Pesho [2025-03-10T20:15:32.636777] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-03-10T20:15:32.693027",
"lastModified" : "2025-03-10T20:15:32.693027",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "0097b016-98d9-4216-92ca-68dacc4c76ed",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/0097b016-98d9-4216-92ca-68dacc4c76ed/comments/87efcc3c-5c8d-4dbd-8a58-bb94982bbcb9",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/87efcc3c-5c8d-4dbd-8a58-bb94982bbcb9",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/87efcc3c-5c8d-4dbd-8a58-bb94982bbcb9"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/87efcc3c-5c8d-4dbd-8a58-bb94982bbcb9/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/87efcc3c-5c8d-4dbd-8a58-bb94982bbcb9",
"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/0097b016-98d9-4216-92ca-68dacc4c76ed/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/0097b016-98d9-4216-92ca-68dacc4c76ed/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" : "9d418f62-3052-403d-bdb8-5392afb18d17",
"message" : "SIT-generated reply Pesho [2025-03-10T20:15:31.526859] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-03-10T20:15:31.583097",
"lastModified" : "2025-03-10T20:15:31.583098",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "0097b016-98d9-4216-92ca-68dacc4c76ed",
"_links" : {
"edit-history" : {
"href" : "https://app.matatika.com/api/comments/9d418f62-3052-403d-bdb8-5392afb18d17/history",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/0097b016-98d9-4216-92ca-68dacc4c76ed/comments/9d418f62-3052-403d-bdb8-5392afb18d17",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/9d418f62-3052-403d-bdb8-5392afb18d17",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/9d418f62-3052-403d-bdb8-5392afb18d17"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/9d418f62-3052-403d-bdb8-5392afb18d17/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/9d418f62-3052-403d-bdb8-5392afb18d17",
"type" : "POST"
}
}
}, {
"id" : "cad01074-539f-4fc7-898d-fda9a15378c9",
"message" : "SIT-generated reply Pesho [2025-03-10T20:15:31.390028] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-03-10T20:15:31.437036",
"lastModified" : "2025-03-10T20:15:31.437036",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "0097b016-98d9-4216-92ca-68dacc4c76ed",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/0097b016-98d9-4216-92ca-68dacc4c76ed/comments/cad01074-539f-4fc7-898d-fda9a15378c9",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/cad01074-539f-4fc7-898d-fda9a15378c9",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/cad01074-539f-4fc7-898d-fda9a15378c9"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/cad01074-539f-4fc7-898d-fda9a15378c9/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/cad01074-539f-4fc7-898d-fda9a15378c9",
"type" : "POST"
}
}
}, {
"id" : "e2383fca-bc7c-4abd-b255-b4dc62849d7b",
"message" : "SIT-generated reply Pesho [2025-03-10T20:15:31.247455] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-03-10T20:15:31.301514",
"lastModified" : "2025-03-10T20:15:31.301515",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "0097b016-98d9-4216-92ca-68dacc4c76ed",
"_links" : {
"edit-history" : {
"href" : "https://app.matatika.com/api/comments/e2383fca-bc7c-4abd-b255-b4dc62849d7b/history",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/0097b016-98d9-4216-92ca-68dacc4c76ed/comments/e2383fca-bc7c-4abd-b255-b4dc62849d7b",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/e2383fca-bc7c-4abd-b255-b4dc62849d7b",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/e2383fca-bc7c-4abd-b255-b4dc62849d7b"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/e2383fca-bc7c-4abd-b255-b4dc62849d7b/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/e2383fca-bc7c-4abd-b255-b4dc62849d7b",
"type" : "POST"
}
}
}, {
"id" : "34860db1-ea7e-4597-bab8-e1f3a5631432",
"message" : "SIT-generated reply Pesho [2025-03-10T20:15:29.655563] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-03-10T20:15:29.702676",
"lastModified" : "2025-03-10T20:15:29.702676",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 3,
"datasetId" : "0097b016-98d9-4216-92ca-68dacc4c76ed",
"_links" : {
"comments" : {
"href" : "https://app.matatika.com/api/datasets/0097b016-98d9-4216-92ca-68dacc4c76ed/comments?parentId=34860db1-ea7e-4597-bab8-e1f3a5631432",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/0097b016-98d9-4216-92ca-68dacc4c76ed/comments/34860db1-ea7e-4597-bab8-e1f3a5631432",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/34860db1-ea7e-4597-bab8-e1f3a5631432",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/34860db1-ea7e-4597-bab8-e1f3a5631432"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/34860db1-ea7e-4597-bab8-e1f3a5631432/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/34860db1-ea7e-4597-bab8-e1f3a5631432",
"type" : "POST"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/datasets/0097b016-98d9-4216-92ca-68dacc4c76ed/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/87efcc3c-5c8d-4dbd-8a58-bb94982bbcb9' -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/87efcc3c-5c8d-4dbd-8a58-bb94982bbcb9"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Comment with HAL links.
{
"id" : "87efcc3c-5c8d-4dbd-8a58-bb94982bbcb9",
"message" : "SIT-generated reply Pesho [2025-03-10T20:15:32.636777] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-03-10T20:15:32.693027",
"lastModified" : "2025-03-10T20:15:32.693027",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "0097b016-98d9-4216-92ca-68dacc4c76ed",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/0097b016-98d9-4216-92ca-68dacc4c76ed/comments/87efcc3c-5c8d-4dbd-8a58-bb94982bbcb9",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/87efcc3c-5c8d-4dbd-8a58-bb94982bbcb9",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/87efcc3c-5c8d-4dbd-8a58-bb94982bbcb9"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/87efcc3c-5c8d-4dbd-8a58-bb94982bbcb9/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/87efcc3c-5c8d-4dbd-8a58-bb94982bbcb9",
"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/87efcc3c-5c8d-4dbd-8a58-bb94982bbcb9/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/87efcc3c-5c8d-4dbd-8a58-bb94982bbcb9/history"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
[ {
"lastModified" : "2025-03-10T20:15:32.696",
"message" : "SIT-generated reply Pesho [2025-03-10T20:15:32.636777] to ",
"editVersion" : "211493"
}, {
"lastModified" : "2025-03-10T20:15:32.878",
"message" : "SIT-generated reply Pesho [2025-03-10T20:15:32.818297] to ",
"editVersion" : "211494"
} ]
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/0097b016-98d9-4216-92ca-68dacc4c76ed/comments?parentId=34860db1-ea7e-4597-bab8-e1f3a5631432' -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/0097b016-98d9-4216-92ca-68dacc4c76ed/comments?parentId=34860db1-ea7e-4597-bab8-e1f3a5631432"
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" : "c6874238-8899-48cc-96d7-e1b4af2f0447",
"message" : "SIT-generated reply Pesho [2025-03-10T20:15:30.453990] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-03-10T20:15:30.510959",
"lastModified" : "2025-03-10T20:15:30.510959",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "0097b016-98d9-4216-92ca-68dacc4c76ed",
"parentId" : "34860db1-ea7e-4597-bab8-e1f3a5631432",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/0097b016-98d9-4216-92ca-68dacc4c76ed/comments/c6874238-8899-48cc-96d7-e1b4af2f0447",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/c6874238-8899-48cc-96d7-e1b4af2f0447",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/c6874238-8899-48cc-96d7-e1b4af2f0447"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/c6874238-8899-48cc-96d7-e1b4af2f0447/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/c6874238-8899-48cc-96d7-e1b4af2f0447",
"type" : "POST"
}
}
}, {
"id" : "9673507f-927c-4f91-9c66-6289553a413c",
"message" : "SIT-generated reply Pesho [2025-03-10T20:15:30.315138] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-03-10T20:15:30.364833",
"lastModified" : "2025-03-10T20:15:30.364833",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "0097b016-98d9-4216-92ca-68dacc4c76ed",
"parentId" : "34860db1-ea7e-4597-bab8-e1f3a5631432",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/0097b016-98d9-4216-92ca-68dacc4c76ed/comments/9673507f-927c-4f91-9c66-6289553a413c",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/9673507f-927c-4f91-9c66-6289553a413c",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/9673507f-927c-4f91-9c66-6289553a413c"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/9673507f-927c-4f91-9c66-6289553a413c/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/9673507f-927c-4f91-9c66-6289553a413c",
"type" : "POST"
}
}
}, {
"id" : "e49a98fe-6653-43fd-a8fd-b9fb984b3e45",
"message" : "SIT-generated reply Pesho [2025-03-10T20:15:30.151211] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-03-10T20:15:30.218051",
"lastModified" : "2025-03-10T20:15:30.218051",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "0097b016-98d9-4216-92ca-68dacc4c76ed",
"parentId" : "34860db1-ea7e-4597-bab8-e1f3a5631432",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/0097b016-98d9-4216-92ca-68dacc4c76ed/comments/e49a98fe-6653-43fd-a8fd-b9fb984b3e45",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/e49a98fe-6653-43fd-a8fd-b9fb984b3e45",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/e49a98fe-6653-43fd-a8fd-b9fb984b3e45"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/e49a98fe-6653-43fd-a8fd-b9fb984b3e45/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/e49a98fe-6653-43fd-a8fd-b9fb984b3e45",
"type" : "POST"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/datasets/0097b016-98d9-4216-92ca-68dacc4c76ed/comments?parentId=34860db1-ea7e-4597-bab8-e1f3a5631432&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/0097b016-98d9-4216-92ca-68dacc4c76ed/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/0097b016-98d9-4216-92ca-68dacc4c76ed/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" : "b4137f67-3927-4586-adb2-0c7a583e6ec4",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-03-10T20:15:32.41821844",
"lastModified" : "2025-03-10T20:15:32.41821874",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "0097b016-98d9-4216-92ca-68dacc4c76ed",
"_links" : {
"create comment" : {
"href" : "https://app.matatika.com/api/datasets/0097b016-98d9-4216-92ca-68dacc4c76ed/comments/b4137f67-3927-4586-adb2-0c7a583e6ec4",
"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/34860db1-ea7e-4597-bab8-e1f3a5631432' -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/34860db1-ea7e-4597-bab8-e1f3a5631432"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("POST", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Comment with HAL links.
{
"id" : "d95048f9-5487-476e-875f-b5502c860466",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-03-10T20:15:31.975355599",
"lastModified" : "2025-03-10T20:15:31.975355899",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "0097b016-98d9-4216-92ca-68dacc4c76ed",
"parentId" : "34860db1-ea7e-4597-bab8-e1f3a5631432",
"_links" : {
"create comment" : {
"href" : "https://app.matatika.com/api/datasets/0097b016-98d9-4216-92ca-68dacc4c76ed/comments/d95048f9-5487-476e-875f-b5502c860466",
"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-03-10T20:15:31.705778] to ",
"datasetId" : "0097b016-98d9-4216-92ca-68dacc4c76ed"
}
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com:443/api/datasets/0097b016-98d9-4216-92ca-68dacc4c76ed/comments/f90c5f60-025b-4c5f-bab8-39e749d1b350' -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-03-10T20:15:31.705778] to ",
"datasetId" : "0097b016-98d9-4216-92ca-68dacc4c76ed"
}'
Python (requests
)
import requests
url = "https://app.matatika.com:443/api/datasets/0097b016-98d9-4216-92ca-68dacc4c76ed/comments/f90c5f60-025b-4c5f-bab8-39e749d1b350"
data = {
"message" : "SIT-generated reply Pesho [2025-03-10T20:15:31.705778] to ",
"datasetId" : "0097b016-98d9-4216-92ca-68dacc4c76ed"
}
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" : "f90c5f60-025b-4c5f-bab8-39e749d1b350",
"message" : "SIT-generated reply Pesho [2025-03-10T20:15:31.705778] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-03-10T20:15:31.853987787",
"lastModified" : "2025-03-10T20:15:31.853988087",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "0097b016-98d9-4216-92ca-68dacc4c76ed",
"_links" : {
"edit-history" : {
"href" : "https://app.matatika.com/api/comments/f90c5f60-025b-4c5f-bab8-39e749d1b350/history",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/0097b016-98d9-4216-92ca-68dacc4c76ed/comments/f90c5f60-025b-4c5f-bab8-39e749d1b350",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/f90c5f60-025b-4c5f-bab8-39e749d1b350",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/f90c5f60-025b-4c5f-bab8-39e749d1b350"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/f90c5f60-025b-4c5f-bab8-39e749d1b350/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/f90c5f60-025b-4c5f-bab8-39e749d1b350",
"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-03-10T20:15:32.447325] to "
}
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com:443/api/comments/87efcc3c-5c8d-4dbd-8a58-bb94982bbcb9' -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/87efcc3c-5c8d-4dbd-8a58-bb94982bbcb9"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Comment with HAL links.
{
"id" : "87efcc3c-5c8d-4dbd-8a58-bb94982bbcb9",
"message" : "SIT-generated reply Pesho [2025-03-10T20:15:32.636777] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-03-10T20:15:32.693027",
"lastModified" : "2025-03-10T20:15:32.693027",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "0097b016-98d9-4216-92ca-68dacc4c76ed",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/0097b016-98d9-4216-92ca-68dacc4c76ed/comments/87efcc3c-5c8d-4dbd-8a58-bb94982bbcb9",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/87efcc3c-5c8d-4dbd-8a58-bb94982bbcb9",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/87efcc3c-5c8d-4dbd-8a58-bb94982bbcb9"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/87efcc3c-5c8d-4dbd-8a58-bb94982bbcb9/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/87efcc3c-5c8d-4dbd-8a58-bb94982bbcb9",
"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/34860db1-ea7e-4597-bab8-e1f3a5631432/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/34860db1-ea7e-4597-bab8-e1f3a5631432/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/34860db1-ea7e-4597-bab8-e1f3a5631432/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/34860db1-ea7e-4597-bab8-e1f3a5631432/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/fbc25628-4201-4b8e-8d2c-41e7e464ff45' -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/fbc25628-4201-4b8e-8d2c-41e7e464ff45"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("DELETE", url, headers=headers)
print(response.text.encode('utf8'))
Response
204 No Content
No response body provided.