---
title: "POST /tests"
method: POST
path: "/tests"
tags: ["application-test"]
---

# POST /tests

`POST /tests`

Run a test with given configuration

## Request body

- ApplicationTestPost — The fields required to run the test
  - `id` string, required — ID of the test
  - `duration` integer, required — Duration to run the test in seconds
  - `virtualUsers` integer, required — Virtual users to be created when test runs
  - `assignCost` boolean, required — Determines if this test run will be charged to the account that ran it
  - `targets` string — target application ID to be used to send requests

## Response `200`

The test was successfully started

- ApplicationTest — State for an application test
  - `id` string — ID of the test
  - `href` string — A reference to the test
  - `attrs` object — User configured parameters for the test
  - `description` string — Short description of the test
  - `created` string, date-time — Time when the test was created
  - `updated` string, date-time — Time when the test was last updated

---

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