POST
/
api
/
datachecks
/
sqltests
/
v1
/
batch
BatchUpsertSqlTests
curl --request POST \
  --url https://developer.synq.io/api/datachecks/sqltests/v1/batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "sqlTests": [
    {
      "platform": {
        "bigquery": {
          "project": "<string>"
        }
      },
      "id": "<string>",
      "name": "<string>",
      "sqlExpression": "<string>",
      "recurrenceRule": "<string>",
      "annotations": [
        {
          "name": "<string>",
          "values": [
            "<string>"
          ]
        }
      ],
      "saveFailures": true
    }
  ]
}'
{
  "createdIds": [
    "<string>"
  ],
  "updatedIds": [
    "<string>"
  ],
  "errors": [
    {
      "id": "<string>",
      "reason": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200
application/json

Success

The response is of type object.