List Custom Dimensions
Returns a paged collection of the model's custom dimensions.
Supply q as a JSON object containing an account ID (for example,
{\"account\":\"v1000:020\"}) to return the custom dimensions and
dimension-member accounts associated with that account.
Required Roles
Service Administrator
REST Resource
GET
/HyperionPlanning/rest/sm/v1/applications/{application}/models/{model}/customdimensions
Request
Parameters:
Table 3-681 Parameters
| Name | Description | Type | Required | Default |
|---|---|---|---|---|
application |
Strategic Modeling application name. | Path | Yes | None |
model |
Strategic Modeling model name. | Path | Yes | None |
q |
The period in which goal seek must achieve the target value. Minimum length: 1 | Query | No | None |
offset |
The zero-based index from which records are returned. If the response omits offset, the paging helper uses 0. Default: 0; Minimum: 0 | Query | No | 0 |
limit |
The number of items to return. Must be a positive integer. Values above 200 are accepted; the effective page size is capped at 200. Default: 100; Minimum: 1 | Query | No | 100 |
Example URL:
https://<BASE-URL>/HyperionPlanning/rest/sm/v1/applications/Sample/models/M1/customdimensions
Response
Supported Media Types: application/json
Example variant: List custom dimensions.
Table 3-682 Parameters
| Name | Description |
|---|---|
items |
Collection of information about the returned resources. |
items[].name |
Name of the returned resource. |
items[].links |
Links related to the resource or result. |
items[].links[].href |
Link to the API call. |
items[].links[].action |
HTTP call type. |
items[].links[].rel |
Relationship type for the link. |
items[].links[].data |
Additional link data, if supplied. |
count |
Count reported for the returned collection; confirm whether this is a page count or total count. |
offset |
The zero-based index from which the records are returned. |
limit |
The page size for the returned records. |
| hasMore | True or false, indicating whether more pages of records are available. |
Sample Response
{
"items": [
{
"name": "Maintenance Contracts",
"links": [
{
"href": "https://<BASE-URL>/HyperionPlanning/rest/sm/v1/applications/Sample/models/M3/customdimensions/Maintenance%20Contracts",
"action": "GET",
"rel": "canonical",
"data": null
}
]
},
{
"name": "Region",
"links": [
{
"href": "https://<BASE-URL>/HyperionPlanning/rest/sm/v1/applications/Sample/models/M3/customdimensions/Region",
"action": "GET",
"rel": "canonical",
"data": null
}
]
}
],
"count": 2,
"offset": 0,
"limit": 100,
"hasMore": false
}
Example variant: Get custom dimensions for account v1000:020.
Table 3-683 Parameters
| Name | Description |
|---|---|
accountId |
Identifier of the account in this response. |
accountName |
Name of the account in this response. |
associatedDimensions |
Custom dimensions associated with the selected account. |
associatedDimensions[].name |
Name of the returned resource. |
associatedDimensions[].links |
Links related to the resource or result. |
associatedDimensions[].links[].href |
Link to the API call. |
associatedDimensions[].links[].action |
HTTP call type. |
associatedDimensions[].links[].rel |
Relationship type for the link. |
associatedDimensions[].links[].data |
Additional link data, if supplied. |
items |
Collection of information about the returned resources. |
items[].accountId |
Identifier of the account in this response. |
items[].accountName |
Name of the account in this response. |
items[].parentAccountId |
Identifier of the parent account. |
count |
Count reported for the returned collection; confirm whether this is a page count or total count. |
offset |
The zero-based index from which the records are returned. |
limit |
The page size for the returned records. |
hasMore |
True or false, indicating whether more pages of records are available. |
Example response body
{
"accountId": "v1000:020",
"accountName": "Service Revenues",
"associatedDimensions": [
{
"name": "Maintenance Contracts",
"links": [
{
"href": "https://<BASE-URL>/HyperionPlanning/rest/sm/v1/applications/Sample/models/M3/customdimensions/Maintenance%20Contracts",
"action": "GET",
"rel": "canonical",
"data": null
}
]
},
{
"name": "Region",
"links": [
{
"href": "https://<BASE-URL>/HyperionPlanning/rest/sm/v1/applications/Sample/models/M3/customdimensions/Region",
"action": "GET",
"rel": "canonical",
"data": null
}
]
}
],
"items": [
{
"accountId": "v1000:020|laptops|region",
"accountName": "Service Revenues/Laptops",
"parentAccountId": "v1000:020"
},
{
"accountId": "v1000:020|laptops|north",
"accountName": "Service Revenues/Laptops/North",
"parentAccountId": "v1000:020|laptops|region"
},
{
"accountId": "v1000:020|laptops|south",
"accountName": "Service Revenues/Laptops/South",
"parentAccountId": "v1000:020|laptops|region"
},
{
"accountId": "v1000:020|east|laptops",
"accountName": "Service Revenues/Laptops/East",
"parentAccountId": "v1000:020|laptops|region"
},
{
"accountId": "v1000:020|laptops|west",
"accountName": "Service Revenues/Laptops/West",
"parentAccountId": "v1000:020|laptops|region"
},
{
"accountId": "v1000:020|region|tablets",
"accountName": "Service Revenues/Tablets",
"parentAccountId": "v1000:020"
},
{
"accountId": "v1000:020|north|tablets",
"accountName": "Service Revenues/Tablets/North",
"parentAccountId": "v1000:020|region|tablets"
},
{
"accountId": "v1000:020|south|tablets",
"accountName": "Service Revenues/Tablets/South",
"parentAccountId": "v1000:020|region|tablets"
},
{
"accountId": "v1000:020|east|tablets",
"accountName": "Service Revenues/Tablets/East",
"parentAccountId": "v1000:020|region|tablets"
},
{
"accountId": "v1000:020|tablets|west",
"accountName": "Service Revenues/Tablets/West",
"parentAccountId": "v1000:020|region|tablets"
}
],
"count": 10,
"offset": 0,
"limit": 100,
"hasMore": false
}
Table 3-684 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/customdimensions'