Get a collection of comments associated with an object

get/documents/{objectTypeName}/{objectId}/comments
Internal-Use Only

Gets a collection of comments by object type and ID.

Request Samples

1

Response Samples

1{
2 "links": [
3 {
4 "method": "GET",
5 "rel": "collection",
6 "href": "/svi-datahub/documents/example_entity/entity_id/comments",
7 "uri": "/svi-datahub/documents/example_entity/entity_id/comments",
8 "type": "application/vnd.sas.collection"
9 },
10 {
11 "method": "GET",
12 "rel": "next",
13 "href": "/svi-datahub/documents/example_entity/entity_id/comments?start=10&limit=10",
14 "uri": "/svi-datahub/documents/example_entity/entity_id/comments?start=10&limit=10",
15 "type": "application/vnd.sas.collection"
16 },
17 {
18 "method": "GET",
19 "rel": "self",
20 "href": "/svi-datahub/documents/example_entity/entity_id/comments?start=0&limit=10",
21 "uri": "/svi-datahub/documents/example_entity/entity_id/comments?start=0&limit=10",
22 "type": "application/vnd.sas.collection"
23 }
24 ],
25 "name": "comments",
26 "start": 0,
27 "count": 2,
28 "items": [
29 {
30 "id": 2,
31 "category": "ExampleCategory2",
32 "author": {
33 "id": "example",
34 "name": "TestExample"
35 },
36 "createDate": "2022-03-17T18:29:08.689Z",
37 "lastUpdatedAt": "2022-03-17T18:29:08.689Z",
38 "lastUpdatedBy": "example",
39 "detail": "ExampleComment2"
40 },
41 {
42 "id": 1,
43 "category": "ExampleCategory",
44 "author": {
45 "id": "example",
46 "name": "TestExample"
47 },
48 "createDate": "2022-03-17T17:47:41.845Z",
49 "lastUpdatedAt": "2022-03-17T17:47:41.845Z",
50 "lastUpdatedBy": "example",
51 "detail": "ExampleComment"
52 }
53 ],
54 "limit": 10,
55 "version": 2
56}

Path Parameters

NameTypeRequiredDescription
objectId
string
true

The ID of the object from which to get the comments.

objectTypeName
string
true

The name of the object type to which the object belongs.

Query Parameters

NameTypeRequiredDescription
filter
string
false

The filter criteria for the request.

limit
integer
false

The maximum number of comments to return in this page of results. The actual number of returned comments is fewer if the collection is exhausted.

Default:
10
sortBy
string
false

The sort criteria for the request.

start
integer
false

The starting index of the first comment on the object.

Default:
0

Responses

StatusMeaningDescription
200OKThe request succeeded.HeadersSchema
400Bad RequestThe request was invalid. The objectTypeName or ID was null or empty. Schema
404Not FoundThe object was not found or the user did not have permission to view it.Schema