Comments
Comments aid conversation and collaboration around workspace datasets. Comments can be made on datasets, or other comments to form threads.
Objects
Comment
Path | Type | Format | Description |
---|---|---|---|
id |
String |
Version 4 UUID | The comment ID |
message |
String |
The comment message | |
likeCount |
Integer |
Unsigned | The number of likes the comment has received |
likedByProfiles |
Array of Member |
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 |
Member |
The comment author | |
commentCount |
Integer |
Unsigned | 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" : "9e35e67d-f07b-47ef-b8be-d0696480cd68",
"message" : "SIT-generated reply Pesho [2025-01-17T17:01:16.143533] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-01-17T17:01:16.228754",
"lastModified" : "2025-01-17T17:01:16.228754",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "2107eeaa-7ffb-466e-b484-88638ee2fd6a",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/2107eeaa-7ffb-466e-b484-88638ee2fd6a/comments/9e35e67d-f07b-47ef-b8be-d0696480cd68",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/9e35e67d-f07b-47ef-b8be-d0696480cd68",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/9e35e67d-f07b-47ef-b8be-d0696480cd68"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/9e35e67d-f07b-47ef-b8be-d0696480cd68/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/9e35e67d-f07b-47ef-b8be-d0696480cd68",
"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/2107eeaa-7ffb-466e-b484-88638ee2fd6a/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/api/datasets/2107eeaa-7ffb-466e-b484-88638ee2fd6a/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" : "641f8085-2174-41e6-83e4-fdb46991d722",
"message" : "SIT-generated reply Pesho [2025-01-17T17:01:13.222561] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-01-17T17:01:13.300666",
"lastModified" : "2025-01-17T17:01:13.300666",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "2107eeaa-7ffb-466e-b484-88638ee2fd6a",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/2107eeaa-7ffb-466e-b484-88638ee2fd6a/comments/641f8085-2174-41e6-83e4-fdb46991d722",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/641f8085-2174-41e6-83e4-fdb46991d722",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/641f8085-2174-41e6-83e4-fdb46991d722"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/641f8085-2174-41e6-83e4-fdb46991d722/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/641f8085-2174-41e6-83e4-fdb46991d722",
"type" : "POST"
}
}
}, {
"id" : "89cf6a65-5b10-4c5e-b824-b888b681ea75",
"message" : "SIT-generated reply Pesho [2025-01-17T17:01:12.894984] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-01-17T17:01:12.999656",
"lastModified" : "2025-01-17T17:01:12.999656",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "2107eeaa-7ffb-466e-b484-88638ee2fd6a",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/2107eeaa-7ffb-466e-b484-88638ee2fd6a/comments/89cf6a65-5b10-4c5e-b824-b888b681ea75",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/89cf6a65-5b10-4c5e-b824-b888b681ea75",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/89cf6a65-5b10-4c5e-b824-b888b681ea75"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/89cf6a65-5b10-4c5e-b824-b888b681ea75/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/89cf6a65-5b10-4c5e-b824-b888b681ea75",
"type" : "POST"
}
}
}, {
"id" : "5de15277-4a1c-4484-8847-7c5385afcfb1",
"message" : "SIT-generated reply Pesho [2025-01-17T17:01:12.577650] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-01-17T17:01:12.696763",
"lastModified" : "2025-01-17T17:01:12.696763",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "2107eeaa-7ffb-466e-b484-88638ee2fd6a",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/2107eeaa-7ffb-466e-b484-88638ee2fd6a/comments/5de15277-4a1c-4484-8847-7c5385afcfb1",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/5de15277-4a1c-4484-8847-7c5385afcfb1",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/5de15277-4a1c-4484-8847-7c5385afcfb1"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/5de15277-4a1c-4484-8847-7c5385afcfb1/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/5de15277-4a1c-4484-8847-7c5385afcfb1",
"type" : "POST"
}
}
}, {
"id" : "becb35bc-242e-40af-bf03-2f6acb1af2ad",
"message" : "SIT-generated reply Pesho [2025-01-17T17:01:09.507765] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-01-17T17:01:09.590346",
"lastModified" : "2025-01-17T17:01:09.590346",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 3,
"datasetId" : "2107eeaa-7ffb-466e-b484-88638ee2fd6a",
"_links" : {
"comments" : {
"href" : "https://app.matatika.com/api/datasets/2107eeaa-7ffb-466e-b484-88638ee2fd6a/comments?parentId=becb35bc-242e-40af-bf03-2f6acb1af2ad",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/2107eeaa-7ffb-466e-b484-88638ee2fd6a/comments/becb35bc-242e-40af-bf03-2f6acb1af2ad",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/becb35bc-242e-40af-bf03-2f6acb1af2ad",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/becb35bc-242e-40af-bf03-2f6acb1af2ad"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/becb35bc-242e-40af-bf03-2f6acb1af2ad/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/becb35bc-242e-40af-bf03-2f6acb1af2ad",
"type" : "POST"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/datasets/2107eeaa-7ffb-466e-b484-88638ee2fd6a/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/9e35e67d-f07b-47ef-b8be-d0696480cd68' -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/api/comments/9e35e67d-f07b-47ef-b8be-d0696480cd68"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Comment with HAL links.
{
"id" : "9e35e67d-f07b-47ef-b8be-d0696480cd68",
"message" : "SIT-generated reply Pesho [2025-01-17T17:01:16.143533] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-01-17T17:01:16.228754",
"lastModified" : "2025-01-17T17:01:16.228754",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "2107eeaa-7ffb-466e-b484-88638ee2fd6a",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/2107eeaa-7ffb-466e-b484-88638ee2fd6a/comments/9e35e67d-f07b-47ef-b8be-d0696480cd68",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/9e35e67d-f07b-47ef-b8be-d0696480cd68",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/9e35e67d-f07b-47ef-b8be-d0696480cd68"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/9e35e67d-f07b-47ef-b8be-d0696480cd68/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/9e35e67d-f07b-47ef-b8be-d0696480cd68",
"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/9e35e67d-f07b-47ef-b8be-d0696480cd68/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/api/comments/9e35e67d-f07b-47ef-b8be-d0696480cd68/history"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
[ {
"lastModified" : "2025-01-17T17:01:16.231",
"message" : "SIT-generated reply Pesho [2025-01-17T17:01:16.143533] to ",
"editVersion" : "195816"
}, {
"lastModified" : "2025-01-17T17:01:16.682",
"message" : "SIT-generated reply Pesho [2025-01-17T17:01:16.440357] to ",
"editVersion" : "195817"
} ]
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/2107eeaa-7ffb-466e-b484-88638ee2fd6a/comments?parentId=becb35bc-242e-40af-bf03-2f6acb1af2ad' -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/api/datasets/2107eeaa-7ffb-466e-b484-88638ee2fd6a/comments?parentId=becb35bc-242e-40af-bf03-2f6acb1af2ad"
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" : "767c62ff-4654-4e66-b3b0-93f3da5364e6",
"message" : "SIT-generated reply Pesho [2025-01-17T17:01:11.126761] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-01-17T17:01:11.20405",
"lastModified" : "2025-01-17T17:01:11.204051",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "2107eeaa-7ffb-466e-b484-88638ee2fd6a",
"parentId" : "becb35bc-242e-40af-bf03-2f6acb1af2ad",
"_links" : {
"edit-history" : {
"href" : "https://app.matatika.com/api/comments/767c62ff-4654-4e66-b3b0-93f3da5364e6/history",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/2107eeaa-7ffb-466e-b484-88638ee2fd6a/comments/767c62ff-4654-4e66-b3b0-93f3da5364e6",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/767c62ff-4654-4e66-b3b0-93f3da5364e6",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/767c62ff-4654-4e66-b3b0-93f3da5364e6"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/767c62ff-4654-4e66-b3b0-93f3da5364e6/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/767c62ff-4654-4e66-b3b0-93f3da5364e6",
"type" : "POST"
}
}
}, {
"id" : "4645893e-b3be-485d-9319-0699f9681c57",
"message" : "SIT-generated reply Pesho [2025-01-17T17:01:10.654345] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-01-17T17:01:10.740037",
"lastModified" : "2025-01-17T17:01:10.740037",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "2107eeaa-7ffb-466e-b484-88638ee2fd6a",
"parentId" : "becb35bc-242e-40af-bf03-2f6acb1af2ad",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/2107eeaa-7ffb-466e-b484-88638ee2fd6a/comments/4645893e-b3be-485d-9319-0699f9681c57",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/4645893e-b3be-485d-9319-0699f9681c57",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/4645893e-b3be-485d-9319-0699f9681c57"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/4645893e-b3be-485d-9319-0699f9681c57/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/4645893e-b3be-485d-9319-0699f9681c57",
"type" : "POST"
}
}
}, {
"id" : "f39930ce-56e9-45ab-a602-6c8c43e5e5c7",
"message" : "SIT-generated reply Pesho [2025-01-17T17:01:10.357414] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-01-17T17:01:10.448711",
"lastModified" : "2025-01-17T17:01:10.448711",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "2107eeaa-7ffb-466e-b484-88638ee2fd6a",
"parentId" : "becb35bc-242e-40af-bf03-2f6acb1af2ad",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/2107eeaa-7ffb-466e-b484-88638ee2fd6a/comments/f39930ce-56e9-45ab-a602-6c8c43e5e5c7",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/f39930ce-56e9-45ab-a602-6c8c43e5e5c7",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/f39930ce-56e9-45ab-a602-6c8c43e5e5c7"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/f39930ce-56e9-45ab-a602-6c8c43e5e5c7/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/f39930ce-56e9-45ab-a602-6c8c43e5e5c7",
"type" : "POST"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/datasets/2107eeaa-7ffb-466e-b484-88638ee2fd6a/comments?parentId=becb35bc-242e-40af-bf03-2f6acb1af2ad&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/2107eeaa-7ffb-466e-b484-88638ee2fd6a/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/api/datasets/2107eeaa-7ffb-466e-b484-88638ee2fd6a/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" : "1e374563-de2d-4cf6-be77-89fea476f504",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-01-17T17:01:15.630601578",
"lastModified" : "2025-01-17T17:01:15.630601878",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "2107eeaa-7ffb-466e-b484-88638ee2fd6a",
"_links" : {
"create comment" : {
"href" : "https://app.matatika.com/api/datasets/2107eeaa-7ffb-466e-b484-88638ee2fd6a/comments/1e374563-de2d-4cf6-be77-89fea476f504",
"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/becb35bc-242e-40af-bf03-2f6acb1af2ad' -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/api/comments/becb35bc-242e-40af-bf03-2f6acb1af2ad"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("POST", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Comment with HAL links.
{
"id" : "0087341d-e562-4427-b8ca-536f1b833012",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-01-17T17:01:14.22312302",
"lastModified" : "2025-01-17T17:01:14.22312332",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "2107eeaa-7ffb-466e-b484-88638ee2fd6a",
"parentId" : "becb35bc-242e-40af-bf03-2f6acb1af2ad",
"_links" : {
"create comment" : {
"href" : "https://app.matatika.com/api/datasets/2107eeaa-7ffb-466e-b484-88638ee2fd6a/comments/0087341d-e562-4427-b8ca-536f1b833012",
"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-01-17T17:01:13.516373] to ",
"datasetId" : "2107eeaa-7ffb-466e-b484-88638ee2fd6a"
}
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/datasets/2107eeaa-7ffb-466e-b484-88638ee2fd6a/comments/365f6eaf-5122-44f5-8cf0-7e1fe57d17d3' -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-01-17T17:01:13.516373] to ",
"datasetId" : "2107eeaa-7ffb-466e-b484-88638ee2fd6a"
}'
Python (requests
)
import requests
url = "https://app.matatika.com/api/datasets/2107eeaa-7ffb-466e-b484-88638ee2fd6a/comments/365f6eaf-5122-44f5-8cf0-7e1fe57d17d3"
data = {
"message" : "SIT-generated reply Pesho [2025-01-17T17:01:13.516373] to ",
"datasetId" : "2107eeaa-7ffb-466e-b484-88638ee2fd6a"
}
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" : "365f6eaf-5122-44f5-8cf0-7e1fe57d17d3",
"message" : "SIT-generated reply Pesho [2025-01-17T17:01:13.516373] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-01-17T17:01:13.898996344",
"lastModified" : "2025-01-17T17:01:13.898996844",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "2107eeaa-7ffb-466e-b484-88638ee2fd6a",
"_links" : {
"edit-history" : {
"href" : "https://app.matatika.com/api/comments/365f6eaf-5122-44f5-8cf0-7e1fe57d17d3/history",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/2107eeaa-7ffb-466e-b484-88638ee2fd6a/comments/365f6eaf-5122-44f5-8cf0-7e1fe57d17d3",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/365f6eaf-5122-44f5-8cf0-7e1fe57d17d3",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/365f6eaf-5122-44f5-8cf0-7e1fe57d17d3"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/365f6eaf-5122-44f5-8cf0-7e1fe57d17d3/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/365f6eaf-5122-44f5-8cf0-7e1fe57d17d3",
"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-01-17T17:01:15.690723] to "
}
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/comments/9e35e67d-f07b-47ef-b8be-d0696480cd68' -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/api/comments/9e35e67d-f07b-47ef-b8be-d0696480cd68"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Comment with HAL links.
{
"id" : "9e35e67d-f07b-47ef-b8be-d0696480cd68",
"message" : "SIT-generated reply Pesho [2025-01-17T17:01:16.143533] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2025-01-17T17:01:16.228754",
"lastModified" : "2025-01-17T17:01:16.228754",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "2107eeaa-7ffb-466e-b484-88638ee2fd6a",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/2107eeaa-7ffb-466e-b484-88638ee2fd6a/comments/9e35e67d-f07b-47ef-b8be-d0696480cd68",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/9e35e67d-f07b-47ef-b8be-d0696480cd68",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/9e35e67d-f07b-47ef-b8be-d0696480cd68"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/9e35e67d-f07b-47ef-b8be-d0696480cd68/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/9e35e67d-f07b-47ef-b8be-d0696480cd68",
"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/becb35bc-242e-40af-bf03-2f6acb1af2ad/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/api/comments/becb35bc-242e-40af-bf03-2f6acb1af2ad/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/becb35bc-242e-40af-bf03-2f6acb1af2ad/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/api/comments/becb35bc-242e-40af-bf03-2f6acb1af2ad/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/7115ef5c-98a4-4890-afaf-b53091c4b45a' -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/api/comments/7115ef5c-98a4-4890-afaf-b53091c4b45a"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("DELETE", url, headers=headers)
print(response.text.encode('utf8'))
Response
204 No Content
No response body provided.