Get Account Metadata
Returns metadata for one account.
When fields is omitted, all supported account properties are returned. When fields is supplied but blank or contains only commas/whitespace, no account properties are returned. Nonblank field tokens are trimmed, case-insensitive, and de-duplicated; only supported requested properties are returned. Links are included in the same response body, independently of field selection.
Required Roles
Service Administrator
REST Resource
GET
/HyperionPlanning/rest/sm/v1/applications/{application}/models/{model}/accounts
Request
Parameters:
Table 3-678 Parameters
| Name | Description | Type | Required | Default |
|---|---|---|---|---|
application |
The name of the application | Path | Yes | None |
| model | The name of the model. | Path | Yes | None |
fields |
Comma-separated list of account field names to include in the
response. Supported values: |
Query | No | None |
Example URL:
https://<BASE-URL>/HyperionPlanning/rest/sm/v1/applications/Sample/models/M1/accounts/v1000
Response
Supported Media Types: application/json
Table 3-679 Parameters
| Name | Description |
|---|---|
name |
Name of the account. |
id |
Identifier of the returned resource. |
accountType |
Account classification, such as Income.
|
dataType |
Type of data stored in the account, such as
Currency.
|
valueStorageType |
Storage type used for account values, such as
Double.
|
aggregationType |
How account values are aggregated, such as
Flow.
|
scale |
Scale configured for the account, such as
Default.
|
userDefinedAccount |
Whether the account is user defined. |
Sample Response
{
"id": "v1000",
"name": "Sales",
"accountType": "Income",
"dataType": "Currency",
"valueStorageType": "Double",
"aggregationType": "Flow",
"scale": "Default",
"userDefinedAccount": false,
"links": [
{
"href": "https://<BASE-URL>/HyperionPlanning/rest/sm/v1/applications/Sample/models/M1/accounts/v1000",
"action": "GET",
"rel": "canonical",
"data": null
},
{
"href": "https://<BASE-URL>/HyperionPlanning/rest/sm/v1/applications/Sample/models/M1/accounts/v1000?fields=accountType%2C%20dataType",
"action": "GET",
"rel": "self",
"data": null
}
]
}
Table 3-680 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>' 'https://<BASE-URL>/HyperionPlanning/rest/sm/v1/applications/Sample/models/M1/accounts/v1000'