---
title: "Update test"
method: PATCH
path: "/tests"
---

# Update test

`PATCH /tests`

Update the commands of an existing test case.

## Request body

- Update — Send `testId` plus at least one field to change. An omitted field is left as it is.
  - `testId` string, required
  - `commands` string[]
  - `autoGenerate` boolean — Whether updating this test's commands should automatically re-trigger MobileBoost to write and verify its automation code. Defaults to true; pass false to skip automatic generation.
  - `folderId` string, nullable — Move the test to this folder, or `null` to take it out of its folder. Omit the field to leave the folder as it is. Changing a test's folder never re-triggers automation generation: it does not change what the test should do.

## Response `200`

Successful response

- unknown

---

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