I can only get the model list for the default tenant
I am trying to retrieve the list of models using the Anaplan API, but I can only get the model list for the default tenant. Is there a way to switch tenants using the API only?
Additional Information:
・API Version: Integration API v2.0
・Authentication Method: Basic Authentication
・API Request
c url -X POST --user {user}:'{password}' https://auth.anaplan.com/token/authenticate
c url -X GET https://api.anaplan.com/2/0/models -H 'Authorization: AnaplanAuthToken {anaplan_auth_token}'
Best Answer
-
Hi,
There is no way to switch tenant in Anaplan API but you can retrieve models for specific workspace withc url -X POST --user {user}:'{password}' https://auth.anaplan.com/token/authenticate
c url -X GET https://api.anaplan.com/2/0/workspaces/{workspaceID}/models -H 'Authorization: AnaplanAuthToken {anaplan_auth_token}'
1
Answers
-
Thank you so much for your prompt and detailed response. Your explanation and the provided cURL commands are incredibly helpful. I appreciate your guidance on retrieving models for a specific workspace using the Anaplan API. This will definitely assist me in managing my workflows more efficiently
1 -
It sounds like you're trying to retrieve a list of models from the Anaplan API but are only able to access the default tenant. Unfortunately, the Anaplan API doesn't provide a direct way to switch tenants with a simple request. To access models from a different tenant, you would need to authenticate separately for each tenant and use the respective authentication tokens. If you're feeling overwhelmed with tasks like troubleshooting API issues or learning Anaplan’s features, it's like when you need to take my exam —sometimes getting the right support or guidance can make all the difference in overcoming these challenges!
0