> ## Documentation Index
> Fetch the complete documentation index at: https://docs.argalabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# POST Save a test

> Create a reusable browser-agent test

```bash theme={null}
POST /runner/tests
```

Create a saved test from a completed run or an explicit TestConfig.

**Request body**

| Field            | Type            | Required    | Description                                   |
| ---------------- | --------------- | ----------- | --------------------------------------------- |
| `name`           | `string`        | Yes         | Test name.                                    |
| `description`    | `string`        | No          | Optional description.                         |
| `run_id`         | `string`        | Conditional | Completed run to copy TestConfig from.        |
| `prompt`         | `string`        | Conditional | Required when not deriving from `run_id`.     |
| `start_url`      | `string`        | Conditional | Required when not deriving from `run_id`.     |
| `test_config`    | `object`        | Conditional | Required unless `run_id` has saved blocks.    |
| `repo_full_name` | `string`        | No          | Repository in `owner/repo` format.            |
| `ci_enabled`     | `boolean`       | No          | Whether the test is enabled for CI workflows. |
| `credentials`    | `object`        | No          | Encrypted credentials for the test.           |
| `tags`           | `array<string>` | No          | Test tags.                                    |
