Skip to main content
PUT
/
v1
/
projects
/
{projectId}
/
test-cases
/
{testCaseId}
Update Test Case
curl --request PUT \
  --url https://api.pathors.com/v1/projects/{projectId}/test-cases/{testCaseId} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "systemPrompt": "<string>",
  "maxTurns": 123,
  "variables": {}
}
'
{
  "data": {}
}

Request

PUT https://api.pathors.com/v1/projects/{projectId}/test-cases/{testCaseId}

Path Parameters

projectId
string
required
The project ID
testCaseId
string
required
The test case ID

Headers

Authorization
string
required
Bearer token using your developer key

Body

name
string
Updated name for the test case
systemPrompt
string
Updated system prompt
maxTurns
integer
Updated maximum number of conversation turns (minimum 1)
variables
object
Updated key-value pairs of variables

Response

data
object
The updated test case object.

Example

curl -X PUT https://api.pathors.com/v1/projects/{projectId}/test-cases/{testCaseId} \
  -H "Authorization: Bearer dk_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Updated greeting flow",
    "maxTurns": 10
  }'
{
  "data": {
    "id": "test-case-uuid",
    "projectId": "project-uuid",
    "name": "Updated greeting flow",
    "systemPrompt": "You are a helpful assistant",
    "maxTurns": 10,
    "variables": {},
    "acceptanceCriteria": [],
    "createdAt": "2026-03-23T00:00:00.000Z",
    "updatedAt": "2026-03-23T00:00:00.000Z"
  }
}