Get Account Values

Returns account values.

q is required and must be a JSON object containing non-empty accounts and scenarios arrays. accounts contains account IDs; scenarios contains scenario names. periods is an optional array of period labels; omit it or supply an empty array to return all periods. Strings in all selection arrays must be non-blank. An omitted q or malformed query JSON returns HTTP 400. Missing or empty accounts or scenarios arrays, or blank strings in any selection array, return HTTP 422. q values are not URL-decoded or transformed by the resource. All returned numeric account values are raw and unscaled; account and model display scales are not applied.

Required Roles

Service Administrator

REST Resource

GET /HyperionPlanning/rest/sm/v1/applications/{application}/models/{model}/values

Request

Parameters:

Table 3-699 Parameters

Name Description Type Required Default
application Strategic Modeling application name. Path Yes None
model Strategic Modeling model name. Path Yes None
q Required JSON object containing non-empty accounts and scenarios arrays. accounts contains account IDs; scenarios contains scenario names. periods is an optional array of period labels; omit it or supply an empty array to return all periods. Strings in all selection arrays must be non-blank. Missing or empty accounts or scenarios arrays, or blank strings in any selection array, return HTTP 422. Query Yes None

Example URL:

https://<BASE-URL>/HyperionPlanning/rest/sm/v1/applications/Sample/models/M1/values

Response

Supported Media Types: application/json

Table 3-700 Parameters

Name Description
items Collection of information about the returned resources.
items[].id Identifier of the returned resource.
items[].name Name of the returned resource.
items[].scenarios Scenario results included in this response.
items[].scenarios[].scenario Scenario name associated with this result.
items[].scenarios[].periods Values or metadata organized by time period.
items[].scenarios[].periods.2024 Field shown in the Swagger response example; confirm its definition.
count Count reported for the returned collection; confirm whether this is a page count or total count.
links Links related to the resource or result.
links[].rel Relationship type for the link.
links[].href Link to the API call.
links[].action HTTP call type.
links[].data Additional link data, if supplied.

Sample Response

{
  "items": [
    {
      "id": "v1000",
      "name": "Sales",
      "scenarios": [
        {
          "scenario": "Base",
          "periods": {
            "2024": 2058650939.6000004
          }
        }
      ]
    }
  ],
  "count": 1,
  "links": [
    {
      "rel": "canonical",
      "href": "https://<BASE-URL>/HyperionPlanning/rest/sm/v1/applications/Sample/models/M2/values?q=%7B%22accounts%22%3A%5B%22v1000%22%5D%2C%2B%22scenarios%22%3A%5B%22Base%22%5D%2C%2B%22periods%22%3A%5B%222024%22%5D%7D",
      "action": "GET",
      "data": null
    }
  ]
}

Table 3-701 Status Codes

Code Description
400 Invalid request, malformed query JSON, invalid parameter, or service validation failure.
401 Authentication is required.
403 The authenticated caller is not authorized.
404 Application or requested sub-resource was not found.
500 Unexpected server error.

Sample cURL Command

curl -X GET -u '<USERNAME>:<PASSWORD>' -G --data-urlencode 'q={"accounts":["v1000"],"scenarios":["Base"],"periods":["2024"]}' 'https://<BASE-URL>/HyperionPlanning/rest/sm/v1/applications/Sample/models/M1/values'