Supercheck LogoSupercheck
Tests API

Update a test

Update test title, script, description, type, or priority. Requires test:update. Malformed IDs return 404.

PATCH
/api/tests/{id}

Authorization

bearerAuth
headerAuthorizationBearer <token>

Project-scoped CLI token (sck_live_* or sck_test_*) for documented API operations that accept bearer authentication. Interactive browser operations may require a session cookie. Trigger keys (sck_trigger_* / legacy job_*) are accepted only by job trigger endpoints.

Path Parameters

id*string

Test ID

Formatuuid

Request Body

application/json
  1. body
title?string
script?string
description?string
type?string
Value in"browser""api""performance""database""custom"
priority?string

Test priority. Any other value returns 400.

Value in"low""medium""high"

Response Body

Test updated

application/json
  1. response
id?string
Formatuuid
name?string
title?string
description?string
priority?string

Test priority

Value in"low""medium""high"
type?string

Test type. browser = Playwright, performance = k6

Value in"browser""api""performance""database""custom"
script?string

Test script content

projectId?string
Formatuuid
organizationId?string
Formatuuid
tags?array<>
createdByName?string
createdByImage?string
createdAt?string
Formatdate-time
updatedAt?string
Formatdate-time
Example Request
curl -X PATCH 'https://demo.supercheck.dev/api/tests/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "title": "string",  "description": "string",  "priority": "low",  "type": "browser",  "script": "string",  "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",  "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",  "tags": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "color": "string"    }  ],  "createdByName": "string",  "createdByImage": "string",  "createdAt": "2019-08-24T14:15:22Z",  "updatedAt": "2019-08-24T14:15:22Z"}