Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

Delete a segment or a group of segments. Returns a list of the segments that were effectively deleted.

URL

(POST) /resources/segments/view/delete

PARAMETERS

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

queryThe query object. It define the segments that will be deleted


RESULTS

This methods returns an array with the ids of the deleted segments

EXAMPLE

See this example:

{
	"query":{
		"filters":[
			{
				"filter":{
					"value": [
						4356,
						2487,
						2464
					]
				},
				"key": "segmentId:"
			}
		],
		"size": 1,
		"skip": 0
	},
	"scope":{
		"type": "DocumentSet",
		"dsid": 144
	}
}

RESULTS EXAMPLE

See this example:

{
	"result":[
		4356,
		2487,
		2464
	]
}

 

 

 

 

  • No labels