Export a Grid Data Slice
Exports model data using an axis-based grid definition.
The POV, columns, and rows axes use dimension/member selections; the dimensions and members arrays are positional. gridDefinition is required. All exported numeric cell values are raw and unscaled; account and model display scales are not applied.
Required Roles
Service Administrator
REST Resource
POST
/HyperionPlanning/rest/sm/v1/applications/{application}/models/{model}/exportdataslice}
Request
Parameters:
Table 3-702 Parameters
| Name | Description | Type | Required |
|---|---|---|---|
gridDefinition |
Defines the POV, column, and row axes of the data slice to export. | object | Yes |
gridDefinition.ignoreUnknownMembers |
Whether unknown member names are ignored when the grid is built. Default: false | boolean | No |
gridDefinition.pov |
The point-of-view axis, such as the Scenario selection. | object | Yes |
gridDefinition.pov.dimensions |
Minimum items: 1 | array of string | Yes |
gridDefinition.pov.members |
Minimum items: 1 | array of array | Yes |
gridDefinition.columns |
One or more column-axis definitions, typically for Time. Minimum items: 1 | array of object | Yes |
gridDefinition.columns[].dimensions |
Minimum items: 1 | array of string | Yes |
gridDefinition.columns[].members |
Minimum items: 1 | array of array | Yes |
gridDefinition.rows |
One or more row-axis definitions, typically for Account and optional custom dimensions. Minimum items: 1 | array of object | Yes |
gridDefinition.rows[].dimensions |
Minimum items: 1 | array of string | Yes |
gridDefinition.rows[].members |
Minimum items: 1 | array of array | Yes |
Example URL:
https://<BASE-URL>/HyperionPlanning/rest/sm/v1/applications/Sample/models/M1/exportdataslice
Request body
{
"gridDefinition": {
"ignoreUnknownMembers": false,
"pov": {
"dimensions": [
"Scenario"
],
"members": [
[
"Base"
]
]
},
"columns": [
{
"dimensions": [
"Time"
],
"members": [
[
"2024",
"2025"
]
]
}
],
"rows": [
{
"dimensions": [
"Account"
],
"members": [
[
"v1000:010",
"v1000:020",
"v1020",
"v1040",
"v1080:010",
"v1080:020",
"v1110"
]
]
}
]
}
}
Response
Supported Media Types: application/json
Table 3-703 Parameters
| Name | Description |
|---|---|
pov |
Field shown in the Swagger response example; confirm its definition. |
columns |
Column headers for the returned data. |
rows |
Field shown in the Swagger response example; confirm its definition. |
rows[].headers |
Row header members for the row, such as an account. |
rows[].data |
Data values for the row, aligned to the returned columns. Numeric values are raw and unscaled. |
Example of Response body
{
"pov": [
"Base"
],
"columns": [
[
"2024"
],
[
"2025"
]
],
"rows": [
{
"headers": [
"v1000:010"
],
"data": [
1250.0,
1350.0
]
},
{
"headers": [
"v1000:020"
],
"data": [
2058649689.6000004,
2223341664.7680006
]
},
{
"headers": [
"v1020"
],
"data": [
0.0,
500.0
]
},
{
"headers": [
"v1040"
],
"data": [
1482228676.5120006,
1600806970.6329596
]
},
{
"headers": [
"v1080:010"
],
"data": [
123519056.37600006,
133400580.88607998
]
},
{
"headers": [
"v1080:020"
],
"data": [
51466273.49000003,
55583575.3692
]
},
{
"headers": [
"v1110"
],
"data": [
126220000.0,
149819999.99999997
]
}
]
}
Table 3-704 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 POST -u '<USERNAME>:<PASSWORD>' -H 'Content-Type: application/json' --data '{"gridDefinition":{"ignoreUnknownMembers":false,"pov":{"dimensions":["Scenario"],"members":[["Base"]]},"columns":[{"dimensions":["Time"],"members":[["2024","2025"]]}],"rows":[{"dimensions":["Account"],"members":[["v1000:010","v1000:020","v1020","v1040","v1080:010","v1080:020","v1110"]]}]}}' 'https://<BASE-URL>/HyperionPlanning/rest/sm/v1/applications/Sample/models/M1/exportdataslice'