batchDelete


URI

<mydatas_uri>/delete[.<format>]

Supported methods

POST

Parent resource

myDatas

Introduction

The batchDelete resource is used to delete data in batch, including records and files.

Supported Methods:

Supported output formats: RJSON, JSON, HTML amd XML.

Resource hierarchy

HTTP request methods

Execute the HTTP request on the following URI, where supermapiportal is the server name, with rjson being the output format.

http://supermapiportal:8090/iportal/web/mycontent/datas/delete .rjson

 POST request

Delete data in batch, including records and files.

Request parameter

Following arguments need to be passed in the request sent.

Name Type Description
ids Integer[] The integer array with ID.

Response structure

The structure of the response resource representation is as follows:

Field

Type Description

succeed

boolean Whether to delete data successfully. Delete successfully when succeed is true; otherwise, false.

Response example

Exectue POST request on the batchDelete resource http://localhost:8090/iportal/web/mycontent/datas/delete .rjson to delete data in batch. The request body is as follows:

[

    "1",

    "2"

]

The returned rjson format is as follows:

{ "succeed": true}

See