CustomerOmsStoreUpdate

Update Customer Mark

Update the information queried according to app_id and key_binary, and the maximum number of records is 500 at a time

Request address

POST
http://OmsAddress/app/newoms.php/webservice/customer-oms-store/update?cmd=10019&ip-type=webservicerest&access-token=AccessTokenVal

POST request parameter description

Parameter format Required or not Description
app_id integer Yes App ID
key_binary string Yes
value_binary string Yes
version integer Yes

Data Parameters

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

{
    "app_id": 2,
    "markdata": [
        {
            "app_id": 2,
            "key_binary": "keyword1",
            "value_binary": "other string",
            "version": "other string"
        },
        {
            "app_id": 2,
            "key_binary": "keyword2",
            "value_binary": "other string",
            "version": "other string"
        }
    ]
}

Return Syntax

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 '{
    "app_id": 2,
    "markdata": [
        {
            "app_id": 2,
            "key_binary": "keyword1",
            "value_binary": "other string",
            "version": "other string"
        },
        {
            "app_id": 2,
            "key_binary": "keyword2",
            "value_binary": "other string",
            "version": "other string"
        }
    ]
}' http://omsaddress/app/newoms.php/webservice/customer-oms-store/update?cmd=10019&ip-type=webservicerest&access-token=\

Return Example

Successful Return Example

Status of http request = 200

{
    "code": 0,
    "data": "",
    "msg": "modify success"
}

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"
}
{
    "source_ip": "ip:10.29.89.51 not in whitelist"
}

results matching ""

    No results matching ""