Sheet Availability
URL Endpoint
HTTPS://api.adaptiveinsights.com/api/rest/modeling/<version>/<tenant>/sheet/availability
Version: v1
Category | Metadata Modification |
Description | Retrieve or update dimension or attribute value availability for a given sheet and column. |
Permissions Required to Invoke | |
Parameters Required on Request | sheetName, columnName |
Supported HTTP VERB(s)
HTTP Verb | Single Resource | Collection Resource | Description |
|---|---|---|---|
GET
| Not Supported | Supported | Retrieve the availability of all values for a given sheet and column. |
POST
| Not Supported | Supported | Update the availability of values for a given sheet and column. |
OPTIONS
| Supported | Supported | Returns the list of HTTP verbs supported for this collection resource. |
GET:
- Request:
- /sheet/availability:Retrieves a collection of value availability.Retrieves availability of all values in a sheet dimension. You can filter by instanceCode, sheetName and columnName.Sample Request URI:HTTPS://api.adaptiveinsights.com/api/rest/modeling/v1/globosales/sheet/availability?sheetName=ExpenseCube&columnName=Level&columnType=LevelSample Request Header:Accept-Language: enSample Request BodyQuery ParametersNameDescriptionRequiredsheetNameThe name of the sheet to retrieve availability values from.YcolumnNameThe name of the sheet column to retrieve availability values from. Required for cube sheets only.Only columns where the value availability can be modified are supported.For cube sheet account and level columns, the name of the column respects the locale set in the Accept-Language header.YcolumnCodeThe code of the sheet column to retrieve availability values from. Required for modeled sheets only.Only columns where the value availability can be modified are supported.YcolumnTypeThe type of column for the given columnName or columnCode.Acceptable values: account, level, dimension, attributeYinstanceCodeThe instanceCode to retrieve values from. For example, GLOBO. If no instanceCode is specified, the default instance of the user is used.NlimitThe maximum number of objects in a single response.NoffsetThe zero-based index of the first object in a response collection. The default is 0.Use offset with the limit parameter to control paging of a response collection.N
- Sample Response
- 200Successful response.Sample Response{ "data": [ { "code": "Corporate Plan", "name": "Corporate Plan", "available": true }, { "code": "Engineering", "name": "Engineering", "available": true }, { "code": "Development", "name": "Development", "available": true }, { "code": "Documentation", "name": "Documentation", "available": true }, { "code": "QA", "name": "QA", "available": true }, { "code": "2014-Development Organization", "name": "2014-Development Organization", "available": false }, { "code": "Development-India", "name": "Development-India", "available": false }, { "code": "QA-India", "name": "QA-India", "available": false }, { "code": "G & A", "name": "G & A", "available": false }, { "code": "Hosting", "name": "Hosting", "available": true }, { "code": "Professional Services", "name": "Professional Services", "available": true }, { "code": "Sales", "name": "Sales", "available": true }, { "code": "Marketing", "name": "Marketing", "available": true }, { "code": "US Sales", "name": "US Sales", "available": false }, { "code": "Worldwide Sales", "name": "Worldwide Sales", "available": true }, { "code": "Asia Sales", "name": "Asia Sales", "available": false }, { "code": "Europe Sales", "name": "Europe Sales", "available": true }, { "code": "Latin America Sales", "name": "Latin America Sales", "available": true } ], "total": 18 }
POST:
- Request:
- /sheet/availability:Updates a collection of value availability.Updates availability of all values in a sheet dimension.Sample Request URI:https://api.adaptiveplanning.com/api/rest/modeling/v1/globosales/sheet/availability?sheetName=ExpenseCube&columnName=Level&columnType=LevelSample Request Header:Accept-Language: enRequest body:JSON array of availability objects, matching the "data" property of the export. Each JSON object has the following structure:NameDescriptionRequiredcodeCode of the value. Used to uniquely identify values.YnameName of the value.YaccountGroupWhether the value is an account group. Required for accounts.NavailableWhether the value is available or not. If not present, no change is made.NdeleteIfDataIsPresentWhether to delete the data if present. Required when disabling a custom dimension value on cube sheets.NactionIfDataIsPresentThe action to take when data is present. Required when disabling a custom dimension value on modeled sheets.N
- Sample Request Body
- Request Body[ { "code": "SalesCube.DiscountPercent", "name": "Discount Percent", "accountGroup": false, "available": false } ]Query ParametersNameDescriptionRequiredsheetNameThe name of the sheet to retreive availability values from.YcolumnNamethe name of the sheet column to retrieve availability values from. Required for cube sheets only.Only columns where the value availability can be modified are supported.For cube sheet account and level columns, the name of the column respects the locale set in the Accept-Language header.YcolumnCodeThe code of the sheet column to retrieve availability from. Required for modeled sheets only.Only columns where the value availability can be modified are supported.YcolumnTypeThe type of column for the given columnName or columnCode.Acceptable values: account, level, dimension, attribute.YinstanceCodeThe instanceCode to retrieve values from. For example, GLOBO. If no instanceCode is specified, the default insantce of the user is used.N
- Sample Response:
- 204Successful response is blank with status code 204.