POST
/
api
/
trpc
/
test.create

Create Test

Create a new test case with specified parameters for automated testing.

Headers

IRIS_ACCESS_TOKEN
string
required

Your Iris API access token

Body

name
string
required

Name of the test case

description
string
required

Description of what the test does

url
string
required

Target URL to test

naturalLanguageInput
string
required

Test steps in natural language

status
string
required

Initial status of the test (e.g., “DRAFT”)

projectId
string
required

ID of the project this test belongs to

createdById
string
required

ID of the user creating the test

Response

Returns the created test details upon success.

Response Fields

id
string

Unique identifier for the created test

name
string

Name of the test case

description
string

Description of the test case

url
string

Target URL being tested

naturalLanguageInput
string

Test steps in natural language

status
string

Current status of the test

isActive
boolean

Whether the test is active

projectId
string

ID of the associated project

createdById
string

ID of the user who created the test

createdAt
date

Timestamp of when the test was created

updatedAt
date

Timestamp of when the test was last updated