cURL
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>" }
Update tests.
Bearer authentication header of the form Bearer <token>, where <token> is your workspace API key. See Find your API key for more information.
Bearer <token>
<token>
The project id.
Response OK. Task queued.
The response is of type object.
object
Was this page helpful?