Start Export Task

post

/api/v1/bots/{botId}/insightExports

Creates and starts an asynchronous job to export the skill's insights data into a CSV file. You can filter the data to export by name, a date range, or both. The response includes a resourceId value, which you use for the exportId. After you start the task, use the Get Export Task Status operation to monitor the job status. After the status changes to Completed, you can call the Get Exported Data operation.

Request

Path Parameters
Supported Media Types
Request Body - application/json ()
Description of what data to export.
Root Schema : schema
Type: object
Show Source
Nested Schema : filters
Type: object
Include only the data for the specified intent, channel, or locale or any combination of the three filters.
Example:
{
    "filter":{
        "meta":"",
        "enclose1":{
            "meta":"",
            "enclose2":{
                "meta":"",
                "profileString":{
                    "column":"INTENT",
                    "test":{
                        "op":"matches one of",
                        "arg":"Balances;Accounts"
                    }
                }
            }
        },
        "bool3":{
            "content":"and"
        },
        "enclose4":{
            "meta":"",
            "enclose5":{
                "meta":"",
                "profileString":{
                    "column":"CHANNEL",
                    "test":{
                        "op":"matches one of",
                        "arg":"test; facebook"
                    }
                }
            }
        },
        "bool6":{
            "content":"and"
        },
        "enclose7":{
            "meta":"",
            "enclose8":{
                "meta":"",
                "profileString":{
                    "column":"BR_LANG",
                    "test":{
                        "op":"matches one of",
                        "arg":"en-US; en-UK"
                    }
                }
            }
        }
    }
}
Back to Top

Response

Supported Media Types

200 Response

Success.
Body ()
Root Schema : InsightsExportTaskResponse
Type: object
Show Source

404 Response

The skill doesn't exist or insights aren't enabled for the skill.
Back to Top