Plans & Pricing Help API Docs SendGrid Labs
Menu

API Docs

PUT /v2/tests/:test_id/stop

Stop a currently running test.

curl -X PUT https://api.loader.io/v2/tests/f133e9e3691e405eefd3e1b7c351cb18/stop \
     -H 'loaderio-auth: API_KEY'

Response:

{
    "message": "success",
    "result_id": "d745513b3d1e0689ab5f5e34525cc484",
    "status": "running",
    "test_id": "f133e9e3691e405eefd3e1b7c351cb18"
}

Note that the status still might say "running" right after telling the API to stop the test. It takes a few moments to tell all of the load testers to shut down the test, and the status should soon change to "complete". Each run generates a new result set with a unique result_id.