---
title: "Update a Codeless test"
method: PUT
path: "/v1/lab/{id}"
tags: ["Codeless tests"]
---

# Update a Codeless test

`PUT /v1/lab/{id}`

Updates a Codeless test's metadata: name, target URL, cron schedule, enabled state. Accepts either a numeric Codeless test ID or a WebDriver session_id of a test run that originated from this Codeless test.

## Path parameters

- `id` string, required

## Request body

- PutV1LabId — Update a Codeless test
  - `test` object, required — Updated fields.
    - `name` string — New test name.
    - `url` string — New target URL.
    - `cron` string — New cron expression.
    - `enabled` boolean — Enable or pause scheduled runs.

## Response `200`

Update a Codeless test

- TestingbotEntitiesAck — Testingbot_Entities_Ack model
  - `success` boolean, required — Whether the operation succeeded.
  - `errors` object, required — Validation errors keyed by field name. Only present when `success` is false.
  - `error` string, required — Single human-readable reason, used by the older endpoints in place of `errors`. Only present when `success` is false.

## Other responses

- `401` — Authentication required
- `403` — Account is read-only
- `404` — Test not found

---

[API](https://skmtc.net/testingbot/apis/testingbot-rest-api.md) · [All operations](https://skmtc.net/testingbot/apis/testingbot-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/testingbot/testingbot-rest-api/versions/8f493cca8f92/schema)
