Create a dimension at the application level
Creates a dimension without a plan-type path. The usedIn payload property controls the cubes in which the new dimension participates. The request body must not include an id.
Required Roles
Service Administrator
REST Resource
POST
/HyperionPlanning/rest/v3/applications/{appname}/dimensionsRequest
Parameters:
Table 3-581 Request Parameters
| Name | Description | Location | JSON Type | Required | Default / omission |
|---|---|---|---|---|---|
appname |
The name of the application. | Path | string | Yes | Not applicable |
name |
Dimension name. Required for create. PATCH addresses an existing dimension through the path; do not infer rename support from a returned name. | Request body | string | Yes | See applicability below |
dimType |
Dimension type. For attribute creation, supply ATTRIBUTE_DIMENSION. Omission on ordinary creation selects Custom. PATCH cannot change dimType. | Request body | string | Required for attribute create; otherwise optional | Custom |
description |
Description of the dimension. | Request body | string | No; subject to applicability | See applicability below |
aliasTable |
Alias table used with alias for the dimension root member. | Request body | string | No; subject to applicability | See applicability below |
alias |
Alias value for the dimension root member in the specified alias table. | Request body | string | No; subject to applicability | See applicability below |
density |
Dense or Sparse. A cube-specific setting for an applicable base dimension. | Request body | string | No; subject to applicability | See applicability below |
evaluationOrder |
Evaluation order for an applicable base dimension in the affected cube or cubes. | Request body | integer | No; subject to applicability | See applicability below |
enforceSecurity |
Whether security is enforced for an applicable base dimension. | Request body | boolean | No; subject to applicability | See applicability below |
hierarchyType |
Hierarchy setting for a supported base dimension: None, Dynamic, or Stored. Standard base-dimension creation applies this property; custom-dimension creation does not apply it. | Request body | string | No; subject to applicability | See applicability below |
dataStorage |
Data storage setting for the dimension root member, where supported; for example, Never Share. | Request body | string | No; subject to applicability | See applicability below |
twoPass |
Two-pass calculation setting for the dimension root member, where supported. | Request body | boolean | No; subject to applicability | See applicability below |
usedIn |
Plan-type names controlling ordinary dimension participation. Attribute dimensions follow their base dimension participation. | Request body | array of strings | No; subject to applicability | See applicability below |
attributeType |
Attribute dimension only: Boolean, Date, Number, or Text. Required for attribute creation. On an existing attribute dimension, a supplied edit is subject to attribute-type validation. | Request body | string | Yes, for attribute create; invalid for ordinary dimensions | See applicability below |
baseDimensionName |
Existing non-attribute base dimension. Required for attribute creation; for scoped creation the base must participate in the path cube. Invalid for ordinary dimensions. PATCH rejects this property, including an unchanged value. | Request body | string | Yes, for attribute create; invalid for ordinary dimensions | See applicability below |
id |
Create rejects a supplied nonempty id. On PATCH, this optional consistency-check value must identify the same dimension as the required path identifier. | Request body | string | Do not supply on create | Omitted |
Request properties are subject to dimension-type and operation restrictions. Do not copy a dimension response into a write request: response identity, hierarchy, validity, and navigation properties are not a generic writable payload.
Ordinary base-dimension creation and attribute creation follow different paths.
Standard base-dimension creation applies hierarchyType;
custom-dimension creation does not. Attribute creation requires its name, attribute
dimension type, existing base dimension, and attribute data type. It applies a narrower
property set; the base-dimension settings in this table are not a promise that those
settings can be set independently on an attribute dimension.
For participation defaults and cube-specific settings, see Used In and cube scope in this topic.
Send a required request body with Content-Type: application/json.
Attribute-dimension example: create Size as a Text attribute of the existing Product dimension. The response excerpt describes this same Size dimension.
{
"name": "Size",
"dimType": "ATTRIBUTE_DIMENSION",
"description": "Product size attribute dimension",
"attributeType": "Text",
"baseDimensionName": "Product"
}
Example URL
https://<BASE-URL>/HyperionPlanning/rest/v3/applications/HP1/dimensionsResponse
Supported Media Types: application/json
The response describes the created or updated dimension. The table identifies core identity fields and selected contextual properties. Attribute-only properties apply to attribute dimensions. Optional properties can be omitted when not applicable.
Table 3-582 Response Parameters
| Name | JSON Type | Description |
|---|---|---|
id |
string (UUID) | Opaque identifier of the dimension. |
name |
string | Name of the created or updated dimension. |
dimType |
string | Dimension type returned by the dimension representation, such as Custom or Attribute Dimension. |
description |
string | Dimension description, including the new value when changed by the request. |
attributeType |
string | Attribute data type for an attribute dimension, when applicable. |
baseDimensionName |
string | Associated base dimension name for an attribute dimension, when applicable. |
usedIn |
array of strings | Plan types in which the dimension participates. Attribute participation follows the base dimension. |
level |
integer | Hierarchy level, when included in the dimension representation. |
path |
string | Dimension hierarchy path. |
displayPath |
string | Hierarchy path using display names, when returned. |
aliasPath |
string | Hierarchy path using aliases, when returned. |
links |
array of objects | Returned link metadata, when included. For dimension retrieval, use the supported plan-type-scoped GET route described in Retrieving dimension metadata. |
Write responses describe dimension metadata; do not use them as a generic request payload. The sample is an excerpt, rather than an inventory of every returned property.
Sample Response
This illustrative excerpt corresponds to the Size attribute dimension in the request. Product must already exist; for scoped creation it must participate in Plan1. The UUID illustrates a server-assigned identifier.
{
"id": "013c647f-8570-4637-9644-bb8cb88e1a81",
"name": "Size",
"dimType": "Attribute Dimension",
"description": "Product size attribute dimension",
"attributeType": "Text",
"baseDimensionName": "Product",
"path": "/Size"
}Used In and cube scope
usedIn is an array of plan-type names. For an ordinary dimension,
it controls the cubes in which the dimension participates. Attribute dimensions inherit
participation from their base dimension; do not use this property to assign independent
attribute participation.
Table 3-583 Participation on create and update
| Operation | usedIn omitted | usedIn supplied |
|---|---|---|
| Create at application level | An ordinary dimension initially participates in no cubes. | The explicit list selects participation for the new ordinary dimension. |
| Create for a plan type | An ordinary dimension participates in the path plan type. | The explicit list controls participation; the path alone does not limit it to that cube. |
| PATCH at either scope | Existing participation is preserved. | The list replaces editable participation while retaining read-only or seeded participation. An empty list requests removal from editable cubes. |
For PATCH, omitting usedIn differs from sending
"usedIn": []. The latter requests removal of editable participation;
it does not remove read-only or seeded participation.
Table 3-584 Scope of density and evaluationOrder
| Request scope | Target cubes for applicable settings |
|---|---|
| Plan-type path | The path cube. |
| Application-level path | The requested participation when usedIn is nonempty; otherwise the dimension's existing participation. |
A plan-type path scopes these cube-specific settings. Other supplied properties can affect application-level dimension metadata, and an explicit participation list can affect other cubes.
For example, "usedIn": ["Plan1", "Plan2"] explicitly selects
those plan types. Supply plan types that exist in the application and are valid for
the dimension. On PATCH, this list replaces editable participation rather than adding
to the existing list.
Attribute dimension requirements
To create an attribute dimension, supply name,
dimType set to ATTRIBUTE_DIMENSION,
baseDimensionName, and attributeType.
The base dimension must already exist and must not itself be an attribute dimension. For a plan-type-scoped create request, the base must participate in the path plan type. The attribute dimension inherits its base dimension's participation.
attributeType and baseDimensionName are
attribute-only properties; do not supply them for an ordinary dimension.
Creating a standard base-dimension type that already exists is not supported.
PATCH cannot change dimType or reassign the base dimension.
Do not include baseDimensionName in a PATCH body, even to repeat
its current value. Use only the supported mutable fields for the addressed dimension.
On an attribute dimension, an attributeType edit is subject to
Attribute-type validation.
Attribute-type validation
The supported attribute types are Boolean, Date,
Number, and Text. The server validates a supplied
type against the dimension and requested operation. This list does not guarantee that
every conversion between types is permitted on an existing attribute dimension.
Access requirements and error outcomes
Table 3-585 Operation access
| Operation | Required access |
|---|---|
| Create a dimension at the application level | Service Administrator. Administrator access; applicable application, dimension, and member restrictions also apply. |
Authentication, resource visibility, and permission to change metadata are separate checks. A successful read does not establish write permission. Error responses are separate from the successful metadata fields documented in this topic.
Table 3-586 Operation-specific outcomes
| Case | Outcome | Action |
|---|---|---|
| Missing or invalid authentication | Authentication failure | Authenticate using the supported method and inspect the actual status/diagnostic response. |
| Administrator requirement not satisfied | 403 Forbidden | Use an account with the Service Administrator role required for this operation. |
| Missing or inaccessible application/resource | Operation-specific failure | Check the identifier, application, and visibility. Do not assume the same missing-resource status across all operations. |
| Invalid write input | 400 Bad Request where applicable | Correct the request properties and operation-specific prerequisites; inspect actual diagnostic details. |
For other failures, inspect the actual HTTP status and response body. See Error Handling and Status Codes. Do not require every error to contain the same metadata or item-detail structure.
Retrieving dimension metadata
Use the plan-type-scoped Get Dimension Details operation to retrieve dimension metadata after a write:
GET /HyperionPlanning/rest/v3/applications/{application}/plantypes/{plantype}/dimensions/{dimname}
Select a plan type in which the dimension participates and to which you have access. For an attribute dimension, participation follows its base dimension. A scoped GET requires participation in the selected plan type; do not assume every application-level dimension participates in Plan1.
Conditional example: Size is the attribute dimension in the request, and its base dimension Product participates in Plan1. Retrieve its identity and path with:
https://<BASE-URL>/HyperionPlanning/rest/v3/applications/HP1/plantypes/Plan1/dimensions/Size?fields=id,name,path
The application-level write URL is not a documented GET retrieval route. Use the supported operation above rather than changing the write method to GET. For lookup, projection, and child-content guidance, see Get Dimension Details.