Skip to main content
PUT
/
v1
/
projects
/
{projectId}
/
test-suites
/
{testSuiteId}
Update Test Suite
curl --request PUT \
  --url https://api.pathors.com/v1/projects/{projectId}/test-suites/{testSuiteId} \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "testCaseIds": [
    {}
  ]
}
'
{
  "data": {}
}

Request

PUT https://api.pathors.com/v1/projects/{projectId}/test-suites/{testSuiteId}

Path Parameters

projectId
string
required
The project ID
testSuiteId
string
required
The test suite ID

Headers

Authorization
string
required
Bearer token using your developer key

Body

name
string
Updated name for the test suite
testCaseIds
array
Updated array of test case IDs (replaces all existing connections)

Response

data
object
The updated test suite object.

Example

curl -X PUT https://api.pathors.com/v1/projects/{projectId}/test-suites/{testSuiteId} \
  -H "Authorization: Bearer dk_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Updated regression suite",
    "testCaseIds": ["test-case-uuid-1", "test-case-uuid-3"]
  }'
{
  "data": {
    "id": "test-suite-uuid",
    "projectId": "project-uuid",
    "name": "Updated regression suite",
    "testCases": [
      { "id": "test-case-uuid-1" },
      { "id": "test-case-uuid-3" }
    ],
    "createdAt": "2026-03-23T00:00:00.000Z",
    "updatedAt": "2026-03-23T00:00:00.000Z"
  }
}