Run a scenario

Applies the given shocks to the model and returns the resulting impact
vectors. Single-region scenarios key their change array by the empty
string; multi-regional scenarios key it by region name, and every region
must be named. The number of keys in changes may not exceed the number
of regions.

In multi-regional mode every shocked sector must have non-zero sales in
the region it is applied to.

POST-only: changes is mandatory and can only be sent in a request
body — see Inputs.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

SAM datarun version, as listed by GET /io/us.

string
required

Data year, as listed by GET /io/us/{datarun}.

Query Params
string

Comma-separated area IDs, as an alternative to supplying region in the
body. Builds a single unnamed region. Supplying this key more than once
is rejected with 400.

string
enum
Defaults to county

Area type for areas. Defaults to county.

Allowed:
string
enum
Defaults to TypeEMSI

Closure method, as an alternative to supplying it in the body.

Allowed:
Body Params

Inputs common to every data-producing endpoint. Validation is strict:
any property not listed here (or added by the endpoint's own schema) is
rejected with 400. Query-string parameters are validated as part of
this same object, so an unrecognised query parameter fails the same way.

region
array of objects
required
length ≥ 1

One region for a single-region model, more than one to run
multi-regionally. Multi-regional runs require every region to be
named and are only supported by services that report HasMR(true)
from GET /io/us/{datarun}/{year}. The array must not be empty.

region*
string
enum
Defaults to TypeEMSI

Closure method for the model.

  • TypeI / Type1 / 1 / I — direct and indirect effects
  • TypeII / Type2 / 2 / II — direct, indirect, and limited induced effects
  • TypeEMSI — Lightcast's custom closure, used by Analyst

Matching is case-insensitive.

Allowed:
limit_sectors
array of strings

Restrict the output rows to these sectors. Codes may be given fully
qualified (z|111000) or bare (111000), in which case the
industry prefix is inferred.

limit_sectors
boolean

Accepted for backwards compatibility. Has no effect on the response.

changes
object
required

Change arrays keyed by region name — the empty string for a
single unnamed region. The number of keys may not exceed the
number of regions.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
OAuth2
Missing 1 required scope
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json
text/csv
text/plain