ZonesBatchDelete

(Batch) Delete Zones

Request address

POST
http://OmsAddress/app/newoms.php/webservice/business/zones/batchdelete?cmd=10006&ip-type=webservicerest&access-token=AccessTokenVal

POST request parameter description

Parameter name Data type Description Whether the field is required Remarks
app_id integer app ids of zones to be deleted Yes
zone_ids Array id of multiple zones to be deleted Yes

Return Syntax

Return Parameter Description

  1. When the returned status code is not 200, it indicates that the addition was unsuccessful, and the returned data is error information

  2. When the returned status code is 200, it means the transaction was successful, where success means the information of the zone that was successfully deleted, and failed means the information of the zone that failed to be deleted.

Request Example

Send A Request through the Curl Method

For the parameters in the command, please refer to the "Description of POST Request Parameters" on this page. For the method to obtain access-token, see: Get access-token

curl -H "Content-type: application/json" -X "POST" http://omsaddress/app/newoms.php/webservice/business/zones/batchdelete?cmd=10006&ip-type=webservicerest&access-token=\

Return Example

Failed Return Example

Status of http request != 200

{
    "name": "Unauthorized",
    "message": "You are requesting with an invalid credential.",
    "code": 0,
    "status": 401,
    "type": "yii\\web UnauthorizedHttpException"
}

results matching ""

    No results matching ""