Skip to main content
POST
/
api
/
datawarehouse
/
v1
/
connection
/
{connection_id}
/
task
/
{task_id}
/
task-results
IngestTaskResults
curl --request POST \
  --url https://developer.synq.io/api/datawarehouse/v1/connection/{connection_id}/task/{task_id}/task-results \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "stateAt": "2023-11-07T05:31:56Z",
  "taskData": {
    "fetchMetricsResult": {
      "queryRows": [
        {
          "rows": [
            {
              "segment": "<string>",
              "columnValues": [
                {
                  "doubleValue": 123,
                  "name": "<string>",
                  "isNull": true
                }
              ]
            }
          ],
          "queryId": "<string>"
        }
      ],
      "commandContext": "<string>"
    }
  }
}
'
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

connection_id
string
required
task_id
string<uuid>
required

Body

application/json
stateAt
string<date-time>
required

Time at which state was collected timestamp.gt = 2022-01-01T00:00:00Z timestamp.gt_lt = 2022-01-01T00:00:00Z timestamp.gt_lt_exclusive = 2022-01-01T00:00:00Z timestamp.gt_lte = 2022-01-01T00:00:00Z timestamp.gt_lte_exclusive = 2022-01-01T00:00:00Z timestamp.lt_now = true

taskData
fetch_metrics_result · object
required

Response

200 - application/json

Success

The response is of type IngestTaskResultsResponse · object.