URI
<maps_uri>/batchaddmaps[.<format>]
Supported methods
Parent resource
Child resources
Introduction
【Deprecated】Add maps in bulk. There are two types of service addresses and each of them requires a different permission. 1. For root address like http://supermapiserver:8090/iserver/services, users should have the admin role. With SuperMap iPortal 8C SP2 and later versions, users with map resource management privileges also have the permission. 2. For a specific address, like: http://supermapiserver:8090/iserver/services/map-world/rest, both of the users mentioned above and normal users have the permission.
Supported Methods:
- POST: Adds maps in bulk.
Supported output formats: RJSON, JSON, HTML, XML.
Resource hierarchy

HTTP request methods
Execute HTTP request on the following URI, here we take rjson as the output format as an example. Where, supermapiportal is the server name.
http://supermapiportal:8190/iportal/web/maps/batchaddmaps.rjson
POST request
To execute a POST request on batchAddMaps resource, the fields included in request body should contain:
| Name | Type | Description |
| rootUrl | String | Service address to add maps in bulk: 1. root address, such as: http://supermapiserver:8090/iserver/services; 2. a specific address like: http://supermapiserver:8090/iserver/services/map-world/rest. |
| tags | List<String> | The tags of the maps to be added in bulk. |
| authorizeSetting | List<IportalAuthorizeEntity> | Share settings of the maps to be added in bulk. |
Response structure
The structure of the returned response resource representation is as follows:
| Field | Type | Description |
| succeed | boolean | Whether maps have been added successfully in a batch. |
| customResult | Map<String,Object> | Custom result information, such as map review status information. |
| newResourceID | String | ID of the newly added resource. |
| newResourceLocation | String | URL of the newly added resource. |
Response example
Execute POST request on batchAddMaps resource http://localhost:8190/iportal/web/maps/batchaddmaps.rjson with the request body as follows:
{
"rootUrl": "http://rdc.ispeco.com:8080/iserver/services/map-china400/rest",
"authorizeSetting": [],
"tags": [
"USERMap"
]
}
The returned result in rjson format is as follows:
{
"newResourceID": "5d4bb18f-c5c3-4008-8db9-95dc49574657",
"succeed": true,
"customResult": {
"checkStatus": "SUCCESSFUL"
},
"newResourceLocation": "/web/maps/batchaddmaps/5d4bb18f-c5c3-4008-8db9-95dc49574657"
}