minorEdit=true doesnt work for REST API for POST comment

XMLWordPrintable

    • 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"}}}' 
      

            Assignee:
            Unassigned
            Reporter:
            Suat Kandiş (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: