PATCH
/
tests
/
{test_id}
curl --request PATCH \
  --url https://app.loadforge.com/api/v2/tests/{test_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "rate": 123,
  "servers": 123,
  "users": 123,
  "host_id": 123,
  "region": "<string>",
  "locustfile": "<string>"
}'
{
  "test_id": 123
}

Update an existing test, specified by ID. You can modify details such as name, rate, servers, users, host_id, region, and locustfile to adjust your load testing configuration.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

test_id
integer
required

ID of test to update

Body

application/json
Test data to update
name
string
required

Name of the test

rate
integer
required

Spawn rate of the virtual users

servers
integer
required

Number of worker servers to launch

users
integer
required

Total virtual users to simulate

host_id
integer
required

ID of the host to test

region
string
required

Region code for the test

locustfile
string
required

The full locustfile content

Response

200
application/json
Test update response
test_id
integer

ID of the updated test