-
Type:
Suggestion
-
Resolution: Unresolved
-
None
-
Component/s: Core - Content REST APIs
-
None
-
1
Whilst 'minorEdit=true' can be used to mute notifications for cases of page edits via REST APIs. However, the same is not applicable when crating the comments on the page.
Sample Curl Commands:
curl -v --request POST \ --url '<BASE_URL>/rest/api/content' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "type": "comment", "container": {"type": "page", "id": <pageID>, "version": { "message": "A message", "number": pageVersion, "minorEdit": true }},"body": {"storage": {"value": "<p> Minor Edit</p>","representation": "storage"}}}'
curl -v --request POST \ --url '<BASE_URL>/rest/api/content' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "type": "comment", "version": { "message": "A message", "version" : 1, "minorEdit": true}, "container": {"type": "page", "id": <pageID>},"body": {"storage": {"value": "<p> Minor Edit</p>","representation": "storage"}}}'