请求地址

/v2/webservice/table/delete-syncdb

请求方法

Post

请求参数说明

参数名称 类型 是否必填 说明
tables TableInfo数组

TableInfo

参数名称 类型 是否必填 说明
zone_id
table_name

示例

{
    "app_id":2,
    "tables":[
        {
            "zone_id":1,
            "table_name":"lstFriendMail"
        },
         {
            "zone_id":1,
            "table_name":"NSDB_ACTOR"
        }
    ]
}

返回参数说明

data数组子元素

参数名称 类型 说明
result enum -1 :失败, 0: 成功 事务提交结果
task_id number 任务ID
msg string 失败原因

成功返回

{
    "code": 0,
    "request_id": "fd87b0d3-e97b-42d8-8c79-b93fb39d5447",
    "data": [
        {
            "app_id": 2,
            "zone_id": 1,
            "table_name": "lstPresentGet",
            "table_type": 0,
            "task_id": 13356,
            "result": 0
        }
    ]
}

失败返回

{
    "code": 0,
    "request_id": "1afb44ff-f414-45a7-9eea-c95ac0580619",
    "data": [
        {
            "app_id": 2,
            "zone_id": 1,
            "table_name": "lstFriendMail",
            "table_type": 0,
            "result": -1,
            "msg": "Failed to create transaction: -10000, err: the sync db in tcapsvr is not configured, so the delete req is not allowed"
        },
        {
            "app_id": 2,
            "zone_id": 1,
            "table_name": "NSDB_ACTOR",
            "table_type": 0,
            "result": -1,
            "msg": "Failed to create transaction: -10000, err: the sync db in tcapsvr is not configured, so the delete req is not allowed"
        }
    ]
}

results matching ""

    No results matching ""