Create a Test Suite
Create basic or logical test suite entities to group related data quality test cases for organized quality monitoring and testing workflows using the Collate REST API.
POST
POST /v1/dataQuality/testSuites
Create a Test Suite
POST /v1/dataQuality/testSuites creates a logical test suite that groups test cases across tables. To create a basic test suite linked to one table, use POST /v1/dataQuality/testSuites/basic as shown below.
The endpoint determines the suite type. Omit executable and basic from the request body. basic is a response field set by the server. executable is deprecated.
Body Parameters
string
required
Name of the test suite. Must be unique. For a basic suite, the examples use
<tableFQN>.testSuite, matching the server’s automatic naming convention.string
Human-readable display name for the test suite.
string
Description of the test suite in Markdown format.
string
The fully qualified name (FQN) of an existing table. Required when creating a basic suite through
/v1/dataQuality/testSuites/basic. Omit this field for logical suites.array
Array of owner references (users or teams) to assign.
POST /v1/dataQuality/testSuites
Returns
Returns the created test suite object with all specified properties and system-generated fields.Response
string
Unique identifier for the test suite (UUID format).
string
Test suite name.
string
Fully qualified name of the test suite.
string
Human-readable display name.
string
Description of the test suite.
boolean
Whether this is a basic (
true) or logical (false) test suite. Set by the server.object
Reference to the table linked to a basic suite. Fields:
id, type (table), name, and fullyQualifiedName. Not set for logical suites.array
List of owners assigned to the test suite.
number
Version number for the entity (starts at 0.1).
Create a Basic Test Suite
The table must already exist in Collate. Use its FQN forbasicEntityReference and <tableFQN>.testSuite for the suite name. If the table already has a basic suite, reuse it. Creating a test case automatically creates the table’s basic suite when one doesn’t exist.
basic: true and a basicEntityReference object identifying the table.
Create or Update (PUT)
UsePUT /v1/dataQuality/testSuites for a logical suite, or PUT /v1/dataQuality/testSuites/basic for a basic suite, to perform an upsert. If a test suite with the same name already exists, the server updates it. Otherwise, the server creates a new test suite. The request body is the same as POST.
PUT updates an existing entity instead of returning a 409 conflict error. Description, tags, owners, and custom properties follow field-level preserve and merge rules on PUT. These rules depend on the field and the calling user or bot’s permissions. Use PATCH to intentionally replace an existing value. For more information, see Entity Update Behavior (PUT vs PATCH).