Add Scenarios To Plan
The endpoint adds scenarios to a specific plan. A request containing the IDs of the scenarios to be added is sent along with the relevant project and plan information.
Endpoint Information
URL:
<custom-env-url>/Testinium.RestApi/api/projects/{projectNameOrId}/plans/{planNameOrId}/scenarios
Method:
PUT
Authentication:
Bearer Token
is requiredContent-Type:
application/json
Path Variables
projectNameOrId
Object
Yes
The name or ID of the project.
planNameOrId
Object
Yes
The name or ID of the test plan.
Request Body
The request body must contain a ScenarioIdsOfPlanDTO
object that includes the IDs of the scenarios to be added.
id
List<Long>
The unique IDs of the scenarios to be added.
Response Body
Upon a successful request, the API returns a StatusResponse
object indicating the status of the operation.
status
string
The status of the operation (e.g., "success").
Error Codes
Possible error codes and their explanations during the operation:
401
Unauthorized
Authorization failed. The user is not logged in.
403
Forbidden
The user does not have permission to access the plan.
404
Scenario not found
The specified scenario was not found.
400
Invalid scenario for project
The specified scenario does not belong to the project.
409
Scenario already exists
The plan already contains the specified scenario.
500
Internal Server Error
An unexpected error occurred on the server side.
Example Request
Last updated