Reference: Re-ordering Columns for Modeled and Cube Sheet Definition JSON APIs
Only available for
/definition
when query parameter reorderColumns
is true.Example Request
Request URI:
HTTPS://api.adaptiveplanning.com/api/rest/modeling/<version>/<tenant>/sheet/modeled/definition/?name=APIColumnsReorderTwo1660598383&reorderColumns=true |
Request Body Create | Request Body Update | Expected Results |
|---|---|---|
|
| If reorderColumns was false , we would have expected this order after updating the column list:
With reorderColumns set to true , we instead get this ordering:
|
- Re-ordering columns flag can be turned on when creating a new sheet, or updating an existing one.
- Typically the re-ordering algorithm will prioritize the ordering of the columns in the API request. However, when there is ambiguity, or when dealing with columns that are not mentioned by the request, the algorithm will prioritize the ordering of the columns as they already existed on the sheet.
- The re-ordering algorithm will move columns backward, rather than move them forward. If two columns swap places (C, B), in practice, the algorithm moves B after C, rather than move C before B. This matters when there are existing columns between B and C that aren't mentioned in the request