How to Retrieve the List of Apps and Pages Using Anaplan API
I have successfully obtained the authentication token and retrieved the list of models using the API.
However, I am unsure how to retrieve the list of apps and pages within a specific model.
Could you please provide guidance on how to achieve this?
Answers
-
Hello @ geometry dash lite, to get the list of apps within a specific model, you'll need to make a GET request to the Anaplan API endpoint for apps. The endpoint format is as follows:
GET https://api.anaplan.com/2/0/models/{modelId}/apps
- Replace
{modelId}
with the actual ID of the model from which you want to retrieve the apps.
Example Request to Retrieve Apps
GET /2/0/models/{modelId}/apps HTTP/1.1Host: api.anaplan.comAuthorization: Bearer {your_auth_token}Content-Type: application/json
Step 2: Retrieve the List of Pages
Once you have the app information, you'll want to retrieve the pages associated with those apps. Use the following endpoint format to get pages:
GET https://api.anaplan.com/2/0/models/{modelId}/apps/{appId}/pages
- Replace
{appId}
with the ID of the app you want to retrieve pages from.
Example Request to Retrieve Pages
GET /2/0/models/{modelId}/apps/{appId}/pages HTTP/1.1Host: api.anaplan.comAuthorization: Bearer {your_auth_token}Content-Type: application/json
Step 3: Handling the Response
After making the requests, handle the JSON response to extract the list of apps and pages. The response will typically contain the necessary information, such as app IDs, page IDs, and other relevant metadata.
0 - Replace
-
Hi @rebeccachurch ,
I am tried to retrieve the list of Apps with the API calls described above including the following Header and I got the following error, looks like the API call does not exists:
Could you provide more info from your API call
0