Skip to main content
POST
Create unit test

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
workspaceId
string<uuid>
required
entityType
enum<string>
required
Available options:
agent,
workflow
entityId
string
required
Minimum string length: 1
input
object
required
name
string
Required string length: 1 - 180
expectation
string
Maximum string length: 50000
assertions
object[]
Maximum array length: 50
judgeContext
object | null
seedCallId
string<uuid>
seedMessageId
string
tags
string[]

Response

Unit test created

success
enum<boolean>
required
Available options:
true
data
object
required