<mydatas_uri>/delete[.<format>]
The batchDelete resource is used to delete data in batch, including records and files.
Supported Methods:
Supported output formats: RJSON, JSON, HTML amd XML.
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
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}