Skip to main content
POST
/
test-cases
cURL
curl --request POST \
  --url https://api.qa.tech/v1/test-cases \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "goal": "<string>",
  "applicationShortId": "<string>",
  "expectedResult": "<string>",
  "resumeFromDependencyProjectTestCaseId": "<string>",
  "waitForDependenciesProjectTestCaseIds": [
    "<string>"
  ],
  "configShortIds": [
    "<string>"
  ],
  "scenarioShortId": "<string>"
}
'
{
  "success": true,
  "testCase": {
    "id": "<string>",
    "name": "<string>",
    "url": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Project API token from Settings > Integrations > API. The token is scoped to a specific project.

Body

application/json
name
string
required
goal
string
required
applicationShortId
string
required
expectedResult
string
resumeFromDependencyProjectTestCaseId
string
waitForDependenciesProjectTestCaseIds
string[]
configShortIds
string[]
scenarioShortId
string

Response

The request has succeeded.

success
boolean
required
testCase
object
required