---
title: "Update a test"
method: PATCH
path: "/api/tests/{id}"
tags: ["Tests"]
---

# Update a test

`PATCH /api/tests/{id}`

Update test title, script, description, or type.

## Request body

- object
  - `title` string
  - `script` string
  - `description` string
  - `type` 'browser' | 'api' | 'performance' | 'database' | 'custom'

## Response `200`

Test updated

- Test
  - `id` string, uuid
  - `name` string, nullable
  - `title` string
  - `description` string, nullable
  - `priority` 'low' | 'medium' | 'high' — Test priority
  - `type` 'browser' | 'api' | 'performance' | 'database' | 'custom' — Test type. `browser` = Playwright, `performance` = k6
  - `script` string, nullable — Test script content
  - `projectId` string, uuid, nullable
  - `organizationId` string, uuid, nullable
  - `tags` Tag[]
    - `id` string, uuid
    - `name` string
    - `color` string, nullable
  - `createdAt` string, date-time, nullable
  - `updatedAt` string, date-time, nullable

## Other responses

- `401` — Authentication required or token invalid
- `404` — Resource not found

## Changes

> 4 revisions in range; 1 could not be searched.

- **2026-03-21** `40aeed2ccba7` — 3 breaking, 4 info
  - the response property `createdAt` became nullable for the status `200`
  - the response property `script` became nullable for the status `200`
  - the response property `updatedAt` became nullable for the status `200`
  - added the optional property `name` to the response with the `200` status
  - …3 more
- **2026-02-08** `78bbac89339b` — 4 warning
  - removed the optional property `name` from the response with the `200` status
  - removed the optional property `organizationId` from the response with the `200` status
  - removed the optional property `projectId` from the response with the `200` status
  - removed the optional property `tags` from the response with the `200` status

[Change history](https://skmtc.dev/supercheck-io/apis/supercheck-api/changes/api/tests/:id/patch.md)

---

[API](https://skmtc.dev/supercheck-io/apis/supercheck-api.md) · [All operations](https://skmtc.dev/supercheck-io/apis/supercheck-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/supercheck-io/supercheck-api/revisions/81782deccf0e/schema)
