Stop Test Plan
The endpoint stops a running test plan. The user must provide the test plan ID in the path. If the plan is not running, the response will indicate that the action is not available.
Endpoint Information
URL:
<custom-env-url>/Testinium.RestApi/api/plans/{id}/stop
Method:
GET
Authentication:
Bearer Token
is requiredContent-Type:
application/json
Path Variables
id
Object
Yes
The ID of the test plan to be stopped.
Response Body
Upon a successful request, the API returns a StopTestPlanResponse
object. If the test plan is running, it stops the plan; otherwise, it returns a message indicating the plan is not running.
status
string
The status of the stop request (e.g., SUCCESS, NOT_AVAILABLE).
message
string
A message indicating the result of the operation.
Error Codes
401
Unauthorized
Authorization failed. The user is not logged in.
403
Forbidden
The user does not have permission to stop the test plan.
404
Test plan not found
The specified test plan was not found.
500
Internal Server Error
An unexpected error occurred on the server side.
Example Request
Last updated