Add a comment to an object.
The comment to create
string
string
integer
UserEntry
integer
string
string
integer
boolean
boolean
Returns the created comment
1
2
3
curl --request POST \
--url 'http://{baseurl}/rest/assets/1.0/comment/create' \
--header 'Accept: application/json'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
"created": "<string>",
"updated": "<string>",
"id": 2154,
"actor": {
"avatarUrl": "<string>",
"displayName": "<string>",
"name": "<string>",
"key": "<string>",
"html": "<string>",
"renderedLink": "<string>",
"isDeleted": true,
"lastSeenVersion": "<string>"
},
"role": 2154,
"comment": "<string>",
"commentOutput": "<string>",
"objectId": 2154,
"canEdit": true,
"canDelete": true
}
Get the comments for an object by object ID.
string
Requiredstring
Returns the comments for the object
1
2
3
curl --request GET \
--url 'http://{baseurl}/rest/assets/1.0/comment/object/{objectId}' \
--header 'Accept: application/json'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
"created": "<string>",
"updated": "<string>",
"id": 2154,
"actor": {
"avatarUrl": "<string>",
"displayName": "<string>",
"name": "<string>",
"key": "<string>",
"html": "<string>",
"renderedLink": "<string>",
"isDeleted": true,
"lastSeenVersion": "<string>"
},
"role": 2154,
"comment": "<string>",
"commentOutput": "<string>",
"objectId": 2154,
"canEdit": true,
"canDelete": true
}
Rate this page: