Cube Sheet Definition
URL Endpoint
HTTPS://api.adaptiveplanning.com/api/rest/modeling/<version>/<tenant>/sheet/cube/definition
Version: v1
Category | Data submission |
Description | Metadata Modification |
Permissions Required to Invoke | |
Parameters Required on Request | name |
Supported HTTP VERB(s)
HTTP Verb | Single Resource | Description |
|---|---|---|
PATCH
| Supported | Insert or Update a cube sheet definition |
DELETE
| Supported | Delete a cube sheet definition |
OPTIONS
| Supported | Returns the list of HTTP verbs supported for this collection resource. |
PATCH
- Request URI
- /sheet/cube/definitionUpdate the cube sheet definition matching the provided query parameter.If a sheet with the matching name does not exist, a new cube sheet will be created with the given properties.Sample Request by Namehttps://api.adaptiveplanning.com/api/rest/modeling/v1/globosales/sheet/cube/definition?name=Sales CubeSample Request HeaderAccept-Language: enSample Request BodySee Request Body sectionQuery ParametersNameDescriptionRequiredinstanceCodeThe instanceCode to retrieve values from. For example, GLOBO. If no instanceCode is specified, the default instance of the user is used.NnameThe name of the sheet.NreorderColumnsSetting this query parameter to true will change the order of the column list to reflect the ordering of columns given in the api request body. By default this is set to false. See Reference: Re-ordering Columns for Modeled and Cube Sheet Definition JSON APIs.N
- Request Body
- Sample Request BodyThe same cube sheet definition format is used as the JSON payload for both endpoints.
Example Request:Request Format{ "properties": { "description": "Expense Cube", "prefix": "Expense", "horizontalAxis": { "type": "level" }, "verticalAxis": [ { "type": "account" }, { "type": "dimension", "name": "ProductFurniture" } ] }, "columns": [ { "properties": { "name": "Base Pay", "type": "dimension" }, "availability":List<SheetAvaliabilityDTO>, "defaultAvailability": false } ], "accounts": [ { "name": "AccountName", "code": "AccountCode" } ], "accessibility": { "usernames": [ "test@greenco.com" ], "excludedFromWorkflow": true } }Example Request for Sheet Creation{ "properties": { "description": "Test description", "prefix": "TestPrefix", "horizontalAxis": { "type": "level" }, "verticalAxis": [ { "type": "account" }, { "type": "dimension", "name": "Base Pay" } ] }, "columns": [ { "properties": { "type": "Account" }, "defaultAvailability": true }, { "properties": { "type": "Level" }, "defaultAvailability": true }, { "properties": { "type": "Time" } }, { "properties": { "name": "Base Pay", "type": "dimension" }, "defaultAvailability": true } ], "accounts": [ { "name": "AccountName", "code": "AccountCode", "type": "Standard" } ] }Sheet definition objectNameDescriptionRequiredpropertiesObject containing general sheet propertiesNcolumnsList of cube sheet column objects.NaccountsList of account objectsNaccessibilityObject containing defining user-assigned sheet accessibility.NSheet properties objectNameDescriptionRequiredTypeDefaultdescriptionSheet description.NstringEmpty stringprefixSheet prefix used for the account code.NstringuserAssignedWhether the sheet is a user-assigned sheet or (by default) a level-assigned sheet.NbooleanfalsetimeStratumCodeThe time stratum code associated with the data in the sheet.NstringGL Time StratumrecalculateOnDemandWhether recalculate on demand is enabled for the sheet.NbooleanfalserearrangeGLAndCustomAccountsWhether users are allowed to rearrange cube-entered accounts with other cube accounts. This can only be enabled when cube standard accounts exist or are being created in the request.NbooleanfalsehideRollupTotalsWhether to hide rollup totals to improve sheet performance.NbooleanfalsehorizontalAxisColumn reference object identifying the column on the horizontal axis.Ncolumn objectTimeverticalAxisList of column reference objects identifying the columns on the vertical axis. If provided, the vertical axis will overwrite any previous selections.Ncolumn object arrayAccountmaxColumnWidthThem maximum width in pixels for each column. Should be between 10 and 1000, or 0 if not width is specified.Ninteger0suppressZeroRowsWhether zero rows are suppressed.NbooleanfalseSheet column reference objectNameDescriptionRequiredNameColumn name. Required for custom dimension and attributes.YtypeColumn type.YSheet column objectNameDescriptionRequiredpropertiesObject containing sheet column properties.YavailabilityList of sheet availability objects for the current column. See Sheet Availability for details on the list format.NdefaultAvailabilityThe default availability to apply to all values, unless otherwise specified in availability. Valid for level and dimension columns.NdeleteRequest to delete column from the given sheet. Not valid for columns that are dependent on existing columns that are not flagged for deletion (such as dimension attributes).NSheet columns properties objectNameDescriptionRequiredTypeDefaultnameColumn name. For custom dimension and attribute columns, the name will match the name of the respective custom dimension or attribute.YstringtypeThe type of column.Possible values: LEVEL, ACCOUNT, TIME, DIMENSION, LEVEL_ATTRIBUTE, ACCOUNT_ATTRIBUTE, DIMENSION_ATTRIBUTEYstringinitialBalanceWhether the initial balance will be visible on the sheet. Only valid for time columns.NbooleantruevisibleTimeStratumCodesDefines the list of visible time stratum on the sheet. Only valid for time columns.Nstring arrayAll time stratumeditableOnSheetWhether new values can be added to the dimension column from the sheet. Only valid for dimension and text selector columns.NbooleanfalsenewValueBehaviorDefines whether to enable or disable new values when the are added to the underlying dimension. Only valid for dimension columns. Supported values: AVAILABLE, UNAVAILABLE, or PARENTNstringAVAILABLESheet column lookup table objectNameDescriptionRequiredTypeDefaultnameLookup table name.YstringdisplayAsThe Display As format for this lookup table. Possible values: NUMBER and PERCENT. Only valid for value lookup tables.NstringNUMBERdecimalPrecisionThe decimal precision for values in this lookup table. Possible values: 0 to 9.Ninteger0typeThe type of lookup table. Possible values: VALUE, SPREAD.YstringSheet account objectFor more detail, see Reference: Properties in Account JSON Import PayloadNameDescriptionRequirednameThe account name.YcodeThe account code.YparentThe parent account.NTypeThe account type.YdescriptionThe account description.NshortNameThe account short name.NisCumulativeReturns whether the account is cumulative.NisPlanByDeltaReturns whether the account is plan by delta.NisActualsByDeltaReturns whether the acount is actuals by delta.NisLinkReturns whether the account is a linked account or not.NtimeRollupTypeThe type of rollup to perform for time rollups.NtimeWeightAccountThe weight account used for time rollups.NlevelDimRollupTypeThe type of rollup to perform for level/custom dimension rollups.NlevelDimWeightAccountThe weight account used for leve/custom dimension rollups.NlevelDimRollupTextThe rollup text vlaue used in level/custom dimension rollups.NactualsOverlayThe actuals overlay setting for the account.NattributeValuesList of accoun attribute value objects for this account.NdisplayAsThe display as setting for the account.NformulaThe account formula.NdecimalPrecisionThe default decimal precision for the account.NexchangeRateTypeThe exchange rate type for this account.NsuppressZerosReturns whether the zero rows should be suppressed for the account on sheets.NstartExpandedReturns whether the account starts expanded on the sheet.NdataEntryTypeThe data entry type setting for this account.NdataPrivacyThe data privacy setting for this account.NlinkedAccountMappingsList of LinkedAccountMapping.NSheet accessibility objectNameDescriptionRequiredTypeDefaultusernamesList of usernames to add to the sheet.Must come in the form of valid email addresses.Nstring arrayexcludedFromWorkflowUpdates the "Excluded From Workflow" checkbox in the sheet accessibility settings.Nbooleanfalse
- Sample Response
- 204Successful repsonse is blank with status code 204.
DELETE
- Request URI
- /sheet/cube/definitionDelete the cube sheet definition matching the given query parameter. If a sheet with the matching identifier does not exist, then not found error will occur.Sample Request by Namehttps://api.adaptiveplanning.com/api/rest/modeling/v1/globosales/sheet/cube/definition?name=Sales CubeSample Request HeaderAccept-Language: enSample Request Body<None>Query ParametersNameDescriptionRequirednameThe name of the cube sheet.NinstanceCodeThe instanceCode to retrieve values from. For example, GLOBO. If no instanceCode is specified, the default instance of the user is used.N
- Sample Response
- 204Successful response is blane with status code 204.