Supercheck LogoSupercheck
Tests API

Update a test

Update test title, script, description, or type.

PATCH
/api/tests/{id}

Authorization

bearerAuth
AuthorizationBearer <token>

CLI token (sck_live_*) for full API access, or trigger key (sck_trigger_* / legacy job_*) for job trigger endpoint only.

In: header

Path Parameters

id*string

Test ID

Formatuuid

Request Body

application/json

title?string
script?string
description?string
type?string
Value in"browser" | "api" | "performance" | "database" | "custom"

Response Body

application/json

application/json

application/json

curl -X PATCH "https://demo.supercheck.dev/api/tests/497f6eca-6276-4993-bfeb-53cbbbba6f08" \  -H "Content-Type: application/json" \  -d '{}'
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "title": "string",
  "description": "string",
  "priority": "low",
  "type": "browser",
  "script": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z"
}
{
  "error": "Unauthorized"
}
{
  "error": "Not found"
}