All Products
Search
Document Center

QueryRawData

Last Updated: Jan 15, 2021

QueryRawData

Description

Queries raw data of the current instance in a specific data table by using the primary key. The returned results need to be confirmed by customers.

Method

GET

URI

/openapi/instances/{instanceId}/tables/{table}/raw-data

Note:

The table parameter specifies the name of the table. You can set this parameter to item or user.

Request parameters

Parameter

Type

Required

Description

itemId

String

No

This parameter is required when the table parameter is set to item.

itemType

String

No

This parameter is required when the table parameter is set to item.

userId

String

No

This parameter is required when the table parameter is set to user.

userType

String

No

This parameter is required when the table parameter is set to user.

Response parameters

Parameter

Type

Description

RequestId

String

The ID of the request.

Result

Map

The query result returned.

Sample requests

GET /openapi/instances/airec-cn-xxxxx/tables/item/rawdata?itemType=item&itemId=12345

Sample responses

{
  "RequestId": "16B78383-2803-4964-9605-37B30C073B0E",
  "Result": {
    "Detail": {
      "ItemId": "1243",
      "ItemType": "article",
      "SceneId": "1,2,3",
      "Xxx": "Xxx"
    },
    "Messages": [
      {
        "UploadTimestamp": "2019-09-09T16:00:00.000Z",
        "Cmd": "update",
        "Content": {
          "ItemId": "0",
          "ItemType": "article",
          "Title": "abc"
          ...
        }
      },
      {
        "UploadTimestamp": "2019-09-09T16:00:00.000Z",
        "Cmd": "add",
        "Content": {
          "ItemId": "0",
          "ItemType": "article",
          "Title": "abc"
          ...
        }
      }
    ]
  }
}