Get a collection of scenarios

get/strategies/{strategyId}/scenarios

Get a collection of scenarios with a given strategy identifier.

Request Samples

1

Response Samples

1{
2 "name": "scenarios",
3 "start": 0,
4 "count": 1,
5 "links": [
6 {
7 "method": "GET",
8 "rel": "collection",
9 "href": "/svi-alert/strategies/strategy_8088058/scenarios",
10 "uri": "/svi-alert/strategies/strategy_8088058/scenarios",
11 "type": "application/vnd.sas.collection"
12 },
13 {
14 "method": "GET",
15 "rel": "self",
16 "href": "/svi-alert/strategies/strategy_8088058/scenarios?start=0&limit=100",
17 "uri": "/svi-alert/strategies/strategy_8088058/scenarios?start=0&limit=100",
18 "type": "application/vnd.sas.collection"
19 }
20 ],
21 "items": [
22 {
23 "scenarioId": "1",
24 "scenarioName": "Scenario 1",
25 "version": 1
26 }
27 ]
28}

Path Parameters

NameTypeRequiredDescription
strategyId
string
true

Specifies the identifier of the strategy from which to retrieve the scenarios.

<= 36 characters

Query Parameters

NameTypeRequiredDescription
limit
integer<int32>
false

Specifies the maximum number of items to return. The default value is 10.

>= 1
Default:
10
start
integer<int32>
false

Specifies the index of the first item to return. The default value is 0.

>= 0
Default:
0

Responses

StatusMeaningDescription
200OK

The request succeeded.

Schema
400Bad Request

The request was invalid.

Schema
500Internal Server Error

The request could not be fulfilled because of an unexpected server error.

Schema