Create Data Export Task (Multiple Modes Supported)

Last Updated on : 2026-06-15 04:49:10Copy for LLMView as MarkdownDownload PDF

Create data export tasks that support multiple modes: APP, PID, and APP_PID.

API address

POST: /v2.0/cloud/agent/chat/oem/data-export/tasks

Request parameter

Description of body

Parameter nameTypeINRequiredDescription
modeStringbodyfalseData processing and query mode. APP (default mode), PID, and APP_PID modes are supported:
  • APP: Export session data of all devices under multiple apps.
  • PID: Export session data of the specified productId.
  • APP_PID: Export session data of the specified productId under multiple apps.
biz_dateStringbodytrueThe business date in the format of yyyy-MM-dd.
schemasListbodyfalseList of app schemas. A maximum of 10 app schemas are supported in a batch.
product_idStringbodyfalseThe product ID.

Return parameter

Parameter nameTypeDescription
resultDataExportTaskCreateResponseThe returned result.

Description of result

Parameter nameTypeDescription
taskIdStringThe task ID.

Request example

POST: /v2.0/cloud/agent/chat/oem/data-export/tasks
{
  "mode": "APP_PID",
  "biz_date": "2026-06-07",
  "schemas": [
    "app1***schema",
    "app2***schema"
  ],
  "product_id": "7uiqfb6xshqm****"
}

Return example

{
    "result": {
        "task_id": "b2a177d5***ff36fcf9"
    },
    "t": 1634712273110,
    "success": true
}

Error code

For more information, see error code.