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-01-15T01:30:15.01Z",
  "taskData": {
    "fetchMetricsResult": {
      "queryRows": [
        {
          "rows": [
            {
              "segment": "<string>",
              "columnValues": [
                {
                  "name": "<string>",
                  "isNull": true,
                  "doubleValue": "<any>"
                }
              ]
            }
          ],
          "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

Examples:

"2023-01-15T01:30:15.01Z"

"2024-12-25T12:00:00Z"

taskData
object
required

Response

200 - application/json

Success

The response is of type object.