Get Plans Of Scenario
8 min
the endpoint retrieves the plans associated with a specific scenario it returns a list of plans based on the provided project and scenario information endpoint information url \<custom env url>/testinium restapi/api/projects/{projectnameorid}/scenarios/{scenarionameorid}/plans method get authentication bearer token is required path variables response body upon a successful request, the api returns a list of plandto objects associated with the specified scenario \[ { "id" 261, "project id" 580, "company id" 1, "plan name" "android", "group plan" false, "description" "", "enabled" true, "plan parallel test limit" 36, "scenarios" \[ 3076, 3077, 3078, 3079, 3080, 3056, 3087, 3086, 3100 ], "period" { "period type" "manual", "days of week" "2,3,4,5,6,7,1", "repeat period" 60 }, "alerts" \[], "alerts enabled" false, "failed test retry count" 3, "screen shot type" "yes", "video enabled" false, "environments" \[ { "id" 9 }, { "id" 13 } ], "clear app data" false, "fetch app files" \[], "selected android mobile app" { "id" 54, "mobile app name" "pegasus pilot release 2 39 0 38 2 ee15733f 2799725523214323595 apk", "mobile app hash" "57e487d42eaa459b1713df8c1dd691a8", "operating system" "android", "mobile app metadata" "{\\"packagename\\" \\"com pozitron pegasus pilotrelease\\",\\"label\\" \\"pgs pilot\\",\\"icon\\" \\"res/u3 png\\",\\"versionname\\" \\"2 39 0 38\\",\\"versioncode\\" 119,\\"minsdkversion\\" \\"23\\",\\"targetsdkversion\\" \\"33\\"}", "created at" "2024 10 18 09 34 30" }, "selected ios mobile app" { "id" 53, "mobile app name" "gratis b250541b 2 8988176051238453961 ipa", "mobile app hash" "556372e35d7f2b6fa4b7ceb4c0af8b58", "operating system" "ios", "mobile app metadata" "{\\"bundlename\\" \\"gratis\\",\\"bundledisplayname\\" \\"gratis\\",\\"bundleversion\\" \\"3 2 12\\",\\"bundleminosversion\\" \\"12 0\\",\\"bundledevelopmentregion\\" \\"tr\\",\\"bundleexecutable\\" \\"gratis\\",\\"bundleiconfiles\\" \\"\\",\\"bundleinfodictversion\\" \\"6 0\\",\\"bundlepackagetype\\" \\"appl\\",\\"bundlemainstoryboardfile\\" \\"main\\"}", "created at" "2024 10 18 09 34 30" } } ] field type description id integer the unique id of the plan name string the name of the plan description string a brief description of the plan projectid integer the id of the associated project userid integer the id of the user who created the plan error codes possible error codes and their explanations during the operation http code error message description 401 unauthorized authorization failed the user is not logged in 403 forbidden the user does not have permission to access the scenario 404 scenario not found the specified scenario was not found 500 internal server error an unexpected error occurred on the server side example request curl location '\<custom env url>/testinium restapi/api/projects/{projectnameorid}/scenarios/{scenarionameorid}/plans' \\ \ header 'authorization bearer \<your access token>'