Delete a segment or a group of segments. Returns a list of the segments that were successfully deleted.
(POST) /resources/segments/view/delete
The message body contains a JSON object:
scope | The scope object. It delimits the total range of segments and related resources that can be operated |
query | The query object. It define the segments that will be deleted |
This methods returns an array with the ids of the deleted segments
See this example:
{ "query":{ "filters":[ { "filter":{ "value": [ 4356, 2487, 2464 ] }, "key": "segmentId:" } ], "size": 1, "skip": 0 }, "scope":{ "type": "DocumentSet", "dsid": 144 } } |
See this example:
{ "result":[ 4356, 2487, 2464 ] } |