resources/segments/view/delete

Delete a segment or a group of segments. Returns a list of the segments that were successfully 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
	]
}

 

 

 

 

Copyright Wordbee - Buzzin' Outside the Box since 2008