curl --request PUT \
  --url https://api.openlayer.com/v1/projects/{projectId}/tests \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "payloads": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "No duplicate rows",
      "description": "This test checks for duplicate rows in the dataset.",
      "archived": false,
      "thresholds": [
        {
          "measurement": "duplicateRowCount",
          "insightName": "duplicateRowCount",
          "insightParameters": [
            {
              "name": "column_name",
              "value": "<any>"
            }
          ],
          "thresholdMode": "manual",
          "operator": "<=",
          "value": 0
        }
      ],
      "suggested": true
    }
  ]
}'
{
  "taskResultUrl": "<string>",
  "taskResultId": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your workspace API key. See Find your API key for more information.

Path Parameters

projectId
string
required

The project id.

Body

application/json
payloads
object[]
required

Response

202
application/json
Response OK. Task queued.
taskResultUrl
string
taskResultId
string