Skip to content

Delete test

DELETE
/test/{id}
curl --request DELETE \
--url https://testomato.com/api/test/5e9602e7a39e5a46428b457f \
--header 'Authorization: Bearer <token>'

Permanently delete a check.

id
required
string

A unique test ID

Example
5e9602e7a39e5a46428b457f

Check was successfully deleted

Media typeapplication/json
object
message
string
default: Check was successfully deleted
success
boolean
default: true
error
boolean
Example
{
"message": "Check was successfully deleted",
"success": true,
"error": false
}

The API token is missing, malformed or expired. Request a new one from POST /api/authenticate.

Media typeapplication/json
object
message

Error message text

string
default: Access denied! Please log in to access this resource.
code

Error code number

integer
default: 401
ok
boolean
error
boolean
default: true
Example
{
"message": "Access denied! Please log in to access this resource.",
"code": 401,
"ok": false,
"error": true
}

The token is valid but the operation is not allowed. Two distinct causes:

  • the subscription plan does not include API access — every endpoint returns this, regardless of the resource
  • the account lacks the required role on the project — reading needs read, changing checks needs editTests, and so on. See Project permissions.
Media typeapplication/json
object
message

Error message text

string
default: Sorry! Your current plan does not support access to Testomato API.
code

Error code number

integer
default: 403
ok
boolean
error
boolean
default: true
Example
{
"message": "Sorry! Your current plan does not support access to Testomato API.",
"code": 403,
"ok": false,
"error": true
}

Object not found error

Media typeapplication/json
object
message

Error message text

string
default: Object not found
code

Error code number

integer
default: 404
ok
boolean
error
boolean
default: true
Example
{
"message": "Object not found",
"code": 404,
"ok": false,
"error": true
}