PATCH
/
v1
/
testset
/
{testset_id}
/
testcase
/
batch_delete
curl --request PATCH \
  --url https://api.getscorecard.ai/v1/testset/{testset_id}/testcase/batch_delete \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "ids": [
    1,
    2,
    3,
    4
  ]
}'
{
  "ids": [
    1,
    2,
    3
  ],
  "detail": "Testcases 1, 2, 3 deleted successfully."
}

Authorizations

X-API-Key
string
header
required

Path Parameters

testset_id
integer
required

The ID of the Testset from which the Testcases will be deleted.

Body

application/json
ids
integer[]

List of Testcase IDs to delete.

Response

200
application/json
Successful Response
ids
integer[]
required

The IDs of the testcases that were deleted.

detail
string
required

The message indicating the testcases were deleted.