It should be possible to provide an array of new elements via a single POST request, so it really depends what you want/ need to do,
For reference IBM docs list: https://www.ibm.com/docs/en/planning-analytics/2.0.0?topic=data-elements
POST ~/api/v1/Dimensions/tm1.subList()
{"Keys":["Customers","Products","Non-Existing-Dimension",{"Name":"Customers"},"T i M e "]}
------------------------------
Edward Stuart
Solutions Director
Spitfire Analytics Limited
Manchester
------------------------------
Original Message:
Sent: Tue December 10, 2024 01:58 AM
From: Vlad Didenko
Subject: Update dimensions using TM1 REST API
Thanks @Robby Meyers! I appreciate your input. However, my goal is to update the entire dimension/hierarchy, not just add new elements.
From what I understand, the appropriate approach might be to use the PATCH /api/v1/Dimensions('dimName')/Hierarchies('hierName') request, but I wanted to confirm if this is the correct way.
------------------------------
Vlad Didenko
Founder at Succeedium
TeamOne Google Sheets add-on for IBM Planning Analytics / TM1
https://succeedium.com/teamone/
Succeedium Planning Analytics Cloud Extension
https://succeedium.com/space/
------------------------------
Original Message:
Sent: Tue December 10, 2024 12:58 AM
From: Robby Meyers
Subject: Update dimensions using TM1 REST API
I believe you still use a POST. For adding an element it would go into the json body. I'm not an expert here but you could also take a look at TM1py to get a sense for how they have implemented functions like adding an element using python to call the rest api.
Robby
Details about the personal data CBRE collects and why, as well as your data privacy rights under applicable law, are available at CBRE – Privacy Policy.<https: www.cbre.com about privacy-policy policy-picker>