Get Custom Dimension Details

Returns the named custom dimension and a paged, flat collection of all its descendant members. Each item includes parentName so clients can reconstruct the hierarchy when needed.

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/{dimension}

Request

Parameters:

Table 3-685 Parameters

Name Description Type Required Default
application Strategic Modeling application name. Path Yes None
model Strategic Modeling model name. Path Yes None
dimension Custom-dimension name. URL-encode reserved characters, including spaces. Path Yes 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/Region    

Response

Supported Media Types: application/json

Table 3-686 Parameters

Name Description
name Name of the returned resource.
items Collection of information about the returned resources.
items[].parentname 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.
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

{
  "name": "Maintenance Contracts",
  "items": [
    {
      "name": "Laptops",
      "parentName": "Maintenance Contracts"
    },
    {
      "name": "Tablets",
      "parentName": "Maintenance Contracts"
    }
  ],
  "limit": 100,
  "offset": 0,
  "hasMore": false,
  "count": 2
}

Table 3-687 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/Region'