ModifiedZone

(Batch) Modify Zones

Request address

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

POST request parameter description

Parameter name Data type Description Whether the field is required Remarks
zoneInfo Array Each data item is the data of the modified zone in json format. The description of each field is as follows: app_ Id: integer, required, app id of a zone. zone_id: integer, required, game zone id of a zone. zone_name: string, the modified zone name. It is not required. It is not required to fill in this field when the zone name does not need to be modified. zone_group: string, the modified zone cell group. It is not required to fill in this field when the zone cell group does not need to be modified. zone_tag: string, the game zone tag of the modified zone. It is not required to fill in this field when the zone tag does not need to be modified. Yes zone_tag: When filling in multiple tags, please use semicolon ";" to separate them. Up to 5 tags can be supported

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 modified, and failed means the information of the zone that failed to be modified

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/serviceApply/modifiedZone?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 ""