POST
/
api
/
trpc
/
test.update

Update Test

Update an existing test’s configuration including name, description, URL, and test instructions.

Headers

IRIS_ACCESS_TOKEN
string
required

Your Iris API access token

Body

where.id
string
required

The unique identifier of the test to update

data.name
string

New name for the test

data.description
string

Updated description of the test

data.url
string

The URL to be tested

data.naturalLanguageInput
string

Test instructions in natural language

data.isActive
boolean

Whether the test is active

Response

Returns the updated test configuration.

Response Fields

id
string

Unique identifier of the test

name
string

Name of the test

description
string

Description of the test

url
string

URL being tested

naturalLanguageInput
string

Test instructions in natural language

status
string

Current status of the test

isActive
boolean

Whether the test is active

projectId
string

ID of the project this test belongs to

createdById
string

ID of the user who created the test

createdAt
date

Timestamp when the test was created

updatedAt
date

Timestamp when the test was last updated