create_test_case
Create a new API test case for a specific endpoint using apiDetailId and responseId, with steps, expected results, priority, and tags.
Instructions
Create a new test case. Requires apiDetailId (from list_endpoints) and responseId.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"apiDetailId": "<apiDetailId>",
"name": "<name>",
"path": "<path>"
},
"name": "create_test_case"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Test case name | |
| path | Yes | API path (e.g. /v2/users/{userId}) | |
| type | No | Test case type | |
| steps | No | Test steps | |
| status | No | Status | |
| tagIds | No | Tag IDs to assign | |
| priority | No | Priority (e.g. P0, P1, P2, P3) | |
| categoryId | No | Category ID | |
| responseId | No | The response definition ID (must be a string — Apidog internal API requires string type) | |
| apiDetailId | Yes | The API endpoint ID | |
| description | No | Description | |
| precondition | No | Precondition text | |
| expectedResult | No | Overall expected result |