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" : "fd1cff17-8d96-4af0-a1d7-1bcdb901b00a",
"message" : "SIT-generated reply Pesho [2024-12-16T10:02:30.167002] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2024-12-16T10:02:30.265607",
"lastModified" : "2024-12-16T10:02:30.265608",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "cf82d175-a92a-4ee9-894e-a07398d80fcb",
"_links" : {
"edit-history" : {
"href" : "https://app.matatika.com/api/comments/fd1cff17-8d96-4af0-a1d7-1bcdb901b00a/history",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/cf82d175-a92a-4ee9-894e-a07398d80fcb/comments/fd1cff17-8d96-4af0-a1d7-1bcdb901b00a",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/fd1cff17-8d96-4af0-a1d7-1bcdb901b00a",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/fd1cff17-8d96-4af0-a1d7-1bcdb901b00a"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/fd1cff17-8d96-4af0-a1d7-1bcdb901b00a/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/fd1cff17-8d96-4af0-a1d7-1bcdb901b00a",
"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/cf82d175-a92a-4ee9-894e-a07398d80fcb/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/cf82d175-a92a-4ee9-894e-a07398d80fcb/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" : "95dcc985-1228-4cdc-a027-586189d7ba04",
"message" : "SIT-generated reply Pesho [2024-12-16T10:02:27.714623] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2024-12-16T10:02:27.996521",
"lastModified" : "2024-12-16T10:02:27.996521",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "cf82d175-a92a-4ee9-894e-a07398d80fcb",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/cf82d175-a92a-4ee9-894e-a07398d80fcb/comments/95dcc985-1228-4cdc-a027-586189d7ba04",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/95dcc985-1228-4cdc-a027-586189d7ba04",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/95dcc985-1228-4cdc-a027-586189d7ba04"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/95dcc985-1228-4cdc-a027-586189d7ba04/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/95dcc985-1228-4cdc-a027-586189d7ba04",
"type" : "POST"
}
}
}, {
"id" : "52efd8fd-1fe1-45d0-aaf7-e55cb0f05c8a",
"message" : "SIT-generated reply Pesho [2024-12-16T10:02:27.406678] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2024-12-16T10:02:27.505657",
"lastModified" : "2024-12-16T10:02:27.505658",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "cf82d175-a92a-4ee9-894e-a07398d80fcb",
"_links" : {
"edit-history" : {
"href" : "https://app.matatika.com/api/comments/52efd8fd-1fe1-45d0-aaf7-e55cb0f05c8a/history",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/cf82d175-a92a-4ee9-894e-a07398d80fcb/comments/52efd8fd-1fe1-45d0-aaf7-e55cb0f05c8a",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/52efd8fd-1fe1-45d0-aaf7-e55cb0f05c8a",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/52efd8fd-1fe1-45d0-aaf7-e55cb0f05c8a"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/52efd8fd-1fe1-45d0-aaf7-e55cb0f05c8a/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/52efd8fd-1fe1-45d0-aaf7-e55cb0f05c8a",
"type" : "POST"
}
}
}, {
"id" : "19a79edc-9f11-44bb-b021-44e9ac5eafb8",
"message" : "SIT-generated reply Pesho [2024-12-16T10:02:27.083646] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2024-12-16T10:02:27.178504",
"lastModified" : "2024-12-16T10:02:27.178504",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "cf82d175-a92a-4ee9-894e-a07398d80fcb",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/cf82d175-a92a-4ee9-894e-a07398d80fcb/comments/19a79edc-9f11-44bb-b021-44e9ac5eafb8",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/19a79edc-9f11-44bb-b021-44e9ac5eafb8",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/19a79edc-9f11-44bb-b021-44e9ac5eafb8"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/19a79edc-9f11-44bb-b021-44e9ac5eafb8/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/19a79edc-9f11-44bb-b021-44e9ac5eafb8",
"type" : "POST"
}
}
}, {
"id" : "37475f76-2d8c-4103-b74b-86a5685155b5",
"message" : "SIT-generated reply Pesho [2024-12-16T10:02:23.860777] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2024-12-16T10:02:23.955471",
"lastModified" : "2024-12-16T10:02:23.955471",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 3,
"datasetId" : "cf82d175-a92a-4ee9-894e-a07398d80fcb",
"_links" : {
"comments" : {
"href" : "https://app.matatika.com/api/datasets/cf82d175-a92a-4ee9-894e-a07398d80fcb/comments?parentId=37475f76-2d8c-4103-b74b-86a5685155b5",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/cf82d175-a92a-4ee9-894e-a07398d80fcb/comments/37475f76-2d8c-4103-b74b-86a5685155b5",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/37475f76-2d8c-4103-b74b-86a5685155b5",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/37475f76-2d8c-4103-b74b-86a5685155b5"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/37475f76-2d8c-4103-b74b-86a5685155b5/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/37475f76-2d8c-4103-b74b-86a5685155b5",
"type" : "POST"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/datasets/cf82d175-a92a-4ee9-894e-a07398d80fcb/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/fd1cff17-8d96-4af0-a1d7-1bcdb901b00a' -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/fd1cff17-8d96-4af0-a1d7-1bcdb901b00a"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Comment with HAL links.
{
"id" : "fd1cff17-8d96-4af0-a1d7-1bcdb901b00a",
"message" : "SIT-generated reply Pesho [2024-12-16T10:02:30.167002] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2024-12-16T10:02:30.265607",
"lastModified" : "2024-12-16T10:02:30.265608",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "cf82d175-a92a-4ee9-894e-a07398d80fcb",
"_links" : {
"edit-history" : {
"href" : "https://app.matatika.com/api/comments/fd1cff17-8d96-4af0-a1d7-1bcdb901b00a/history",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/cf82d175-a92a-4ee9-894e-a07398d80fcb/comments/fd1cff17-8d96-4af0-a1d7-1bcdb901b00a",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/fd1cff17-8d96-4af0-a1d7-1bcdb901b00a",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/fd1cff17-8d96-4af0-a1d7-1bcdb901b00a"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/fd1cff17-8d96-4af0-a1d7-1bcdb901b00a/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/fd1cff17-8d96-4af0-a1d7-1bcdb901b00a",
"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/fd1cff17-8d96-4af0-a1d7-1bcdb901b00a/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/fd1cff17-8d96-4af0-a1d7-1bcdb901b00a/history"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
[ {
"lastModified" : "2024-12-16T10:02:30.267",
"message" : "SIT-generated reply Pesho [2024-12-16T10:02:30.167002] to ",
"editVersion" : "187521"
}, {
"lastModified" : "2024-12-16T10:02:30.667",
"message" : "SIT-generated reply Pesho [2024-12-16T10:02:30.550743] to ",
"editVersion" : "187522"
} ]
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/cf82d175-a92a-4ee9-894e-a07398d80fcb/comments?parentId=37475f76-2d8c-4103-b74b-86a5685155b5' -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/cf82d175-a92a-4ee9-894e-a07398d80fcb/comments?parentId=37475f76-2d8c-4103-b74b-86a5685155b5"
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" : "8f55b465-40d7-46f1-84eb-5cae7e699d06",
"message" : "SIT-generated reply Pesho [2024-12-16T10:02:25.512340] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2024-12-16T10:02:25.611627",
"lastModified" : "2024-12-16T10:02:25.611627",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "cf82d175-a92a-4ee9-894e-a07398d80fcb",
"parentId" : "37475f76-2d8c-4103-b74b-86a5685155b5",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/cf82d175-a92a-4ee9-894e-a07398d80fcb/comments/8f55b465-40d7-46f1-84eb-5cae7e699d06",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/8f55b465-40d7-46f1-84eb-5cae7e699d06",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/8f55b465-40d7-46f1-84eb-5cae7e699d06"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/8f55b465-40d7-46f1-84eb-5cae7e699d06/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/8f55b465-40d7-46f1-84eb-5cae7e699d06",
"type" : "POST"
}
}
}, {
"id" : "a0efd663-1947-421e-82e6-a2824e4119a9",
"message" : "SIT-generated reply Pesho [2024-12-16T10:02:25.201421] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2024-12-16T10:02:25.298516",
"lastModified" : "2024-12-16T10:02:25.298516",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "cf82d175-a92a-4ee9-894e-a07398d80fcb",
"parentId" : "37475f76-2d8c-4103-b74b-86a5685155b5",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/cf82d175-a92a-4ee9-894e-a07398d80fcb/comments/a0efd663-1947-421e-82e6-a2824e4119a9",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/a0efd663-1947-421e-82e6-a2824e4119a9",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/a0efd663-1947-421e-82e6-a2824e4119a9"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/a0efd663-1947-421e-82e6-a2824e4119a9/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/a0efd663-1947-421e-82e6-a2824e4119a9",
"type" : "POST"
}
}
}, {
"id" : "24d9731f-ce0b-4fce-a553-561b6ebdff24",
"message" : "SIT-generated reply Pesho [2024-12-16T10:02:24.886596] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2024-12-16T10:02:24.985567",
"lastModified" : "2024-12-16T10:02:24.985567",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "cf82d175-a92a-4ee9-894e-a07398d80fcb",
"parentId" : "37475f76-2d8c-4103-b74b-86a5685155b5",
"_links" : {
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/cf82d175-a92a-4ee9-894e-a07398d80fcb/comments/24d9731f-ce0b-4fce-a553-561b6ebdff24",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/24d9731f-ce0b-4fce-a553-561b6ebdff24",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/24d9731f-ce0b-4fce-a553-561b6ebdff24"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/24d9731f-ce0b-4fce-a553-561b6ebdff24/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/24d9731f-ce0b-4fce-a553-561b6ebdff24",
"type" : "POST"
}
}
} ]
},
"_links" : {
"self" : {
"href" : "https://app.matatika.com/api/datasets/cf82d175-a92a-4ee9-894e-a07398d80fcb/comments?parentId=37475f76-2d8c-4103-b74b-86a5685155b5&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/cf82d175-a92a-4ee9-894e-a07398d80fcb/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/cf82d175-a92a-4ee9-894e-a07398d80fcb/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" : "2908dd32-7639-4fd2-8863-c8d9ee35271d",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2024-12-16T10:02:29.740511073",
"lastModified" : "2024-12-16T10:02:29.740511273",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "cf82d175-a92a-4ee9-894e-a07398d80fcb",
"_links" : {
"create comment" : {
"href" : "https://app.matatika.com/api/datasets/cf82d175-a92a-4ee9-894e-a07398d80fcb/comments/2908dd32-7639-4fd2-8863-c8d9ee35271d",
"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/37475f76-2d8c-4103-b74b-86a5685155b5' -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/37475f76-2d8c-4103-b74b-86a5685155b5"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("POST", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Comment with HAL links.
{
"id" : "2b15a451-7ab4-4034-8436-622d52e492d0",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2024-12-16T10:02:28.887241231",
"lastModified" : "2024-12-16T10:02:28.887241431",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "cf82d175-a92a-4ee9-894e-a07398d80fcb",
"parentId" : "37475f76-2d8c-4103-b74b-86a5685155b5",
"_links" : {
"create comment" : {
"href" : "https://app.matatika.com/api/datasets/cf82d175-a92a-4ee9-894e-a07398d80fcb/comments/2b15a451-7ab4-4034-8436-622d52e492d0",
"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 [2024-12-16T10:02:28.237192] to ",
"datasetId" : "cf82d175-a92a-4ee9-894e-a07398d80fcb"
}
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/datasets/cf82d175-a92a-4ee9-894e-a07398d80fcb/comments/584395aa-8164-4178-adfc-af6dcf604f9d' -i -X PUT \
-H 'Accept: application/json, application/javascript, text/javascript, text/json' \
-H 'Content-Type: application/json' \
-d '{
"message" : "SIT-generated reply Pesho [2024-12-16T10:02:28.237192] to ",
"datasetId" : "cf82d175-a92a-4ee9-894e-a07398d80fcb"
}'
Python (requests
)
import requests
url = "https://app.matatika.com/api/datasets/cf82d175-a92a-4ee9-894e-a07398d80fcb/comments/584395aa-8164-4178-adfc-af6dcf604f9d"
data = {
"message" : "SIT-generated reply Pesho [2024-12-16T10:02:28.237192] to ",
"datasetId" : "cf82d175-a92a-4ee9-894e-a07398d80fcb"
}
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" : "584395aa-8164-4178-adfc-af6dcf604f9d",
"message" : "SIT-generated reply Pesho [2024-12-16T10:02:28.237192] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2024-12-16T10:02:28.680253176",
"lastModified" : "2024-12-16T10:02:28.680253376",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "cf82d175-a92a-4ee9-894e-a07398d80fcb",
"_links" : {
"edit-history" : {
"href" : "https://app.matatika.com/api/comments/584395aa-8164-4178-adfc-af6dcf604f9d/history",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/cf82d175-a92a-4ee9-894e-a07398d80fcb/comments/584395aa-8164-4178-adfc-af6dcf604f9d",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/584395aa-8164-4178-adfc-af6dcf604f9d",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/584395aa-8164-4178-adfc-af6dcf604f9d"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/584395aa-8164-4178-adfc-af6dcf604f9d/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/584395aa-8164-4178-adfc-af6dcf604f9d",
"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 [2024-12-16T10:02:29.812527] to "
}
Example Snippets
cURL
curl -H "Authorization: Bearer $ACCESS_TOKEN" 'https://app.matatika.com/api/comments/fd1cff17-8d96-4af0-a1d7-1bcdb901b00a' -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/fd1cff17-8d96-4af0-a1d7-1bcdb901b00a"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("GET", url, headers=headers)
print(response.text.encode('utf8'))
Response
200 OK
Comment with HAL links.
{
"id" : "fd1cff17-8d96-4af0-a1d7-1bcdb901b00a",
"message" : "SIT-generated reply Pesho [2024-12-16T10:02:30.167002] to ",
"likeCount" : 0,
"likedByProfiles" : [ ],
"created" : "2024-12-16T10:02:30.265607",
"lastModified" : "2024-12-16T10:02:30.265608",
"from" : {
"id" : "auth0|5eb0327cbfd7490bff55feeb",
"name" : "[email protected]",
"handle" : "@sit+prod"
},
"commentCount" : 0,
"datasetId" : "cf82d175-a92a-4ee9-894e-a07398d80fcb",
"_links" : {
"edit-history" : {
"href" : "https://app.matatika.com/api/comments/fd1cff17-8d96-4af0-a1d7-1bcdb901b00a/history",
"type" : "GET"
},
"update comment" : {
"href" : "https://app.matatika.com/api/datasets/cf82d175-a92a-4ee9-894e-a07398d80fcb/comments/fd1cff17-8d96-4af0-a1d7-1bcdb901b00a",
"type" : "PUT"
},
"delete comment" : {
"href" : "https://app.matatika.com/api/comments/fd1cff17-8d96-4af0-a1d7-1bcdb901b00a",
"type" : "DELETE"
},
"self" : {
"href" : "https://app.matatika.com/api/comments/fd1cff17-8d96-4af0-a1d7-1bcdb901b00a"
},
"add like" : {
"href" : "https://app.matatika.com/api/comments/fd1cff17-8d96-4af0-a1d7-1bcdb901b00a/like",
"type" : "PUT"
},
"new reply" : {
"href" : "https://app.matatika.com/api/comments/fd1cff17-8d96-4af0-a1d7-1bcdb901b00a",
"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/37475f76-2d8c-4103-b74b-86a5685155b5/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/37475f76-2d8c-4103-b74b-86a5685155b5/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/37475f76-2d8c-4103-b74b-86a5685155b5/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/37475f76-2d8c-4103-b74b-86a5685155b5/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/525ff91d-9e66-4e0b-9661-54b4c18f9be3' -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/525ff91d-9e66-4e0b-9661-54b4c18f9be3"
headers = {
'Authorization': ACCESS_TOKEN
}
response = requests.request("DELETE", url, headers=headers)
print(response.text.encode('utf8'))
Response
204 No Content
No response body provided.