TableModifyCheck

Check the Application for Modifying Tables

Request address

POST
http://OmsAddress/app/newoms.php/webservice/business/table/modify/check?cmd=10003&ip-type=webservicerest&access-token=AccessTokenVal

POST request parameter description

Parameter name Data type Description Whether the field is required Remarks
uid integer id of the application form for modifying tables Yes
auto_exec_trans Integer (0 or 1) Whether to generate a transaction to modify the table after approving the table modification application (the set where the table is located allows automatic execution of the table modification transactions) No, the default is not auto-execution

Data Parameters

Use json format to represent the record related information. The following is an example:

{
    "uid": 111
}

Return Syntax

Return Parameter Description

  1. When the returned status code is not 200, it means that the check was unsuccessful, and the returned data is the check failure information

  2. When the returned status code is 200, it means the check was successful, and the data structure returned is as follows:

Field name Data type Description Remarks
trans_id integer id of the generated corresponding transaction
set_id integer Set of the transaction

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" -d '{
    "uid": 111
}' http://omsaddress/app/newoms.php/webservice/business/table/modify/check?cmd=10003&ip-type=webservicerest&access-token=\

Return Example

Successful Return Example

Status of http request = 200

{
    "set_id": 126,
    "trans_id": 406
}

Failed Return Example

Status of http request != 200

{
    "uid": [
        "apply not in pending status(id:111)"
    ]
}

results matching ""

    No results matching ""