Skip to main content

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:

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

RESULTS EXAMPLE

See this example:

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

 

 

 

 

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.