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>"
}
]
}
Upsert SqlTests based on a unique ID.
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>"
}
]
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Success
The response is of type object
.