Use this call to retrieve metadata for a specified list.
This helps confirm that the integration is targeting the correct list and understand its structure before working with its items.
| Metadata | Description |
category | The category to which the list is assigned. |
dataTags | The data tags associated with the list. |
displayNameProperty | If present it indicates the name of the property set on the list. |
hasSelectiveAccess | If the value is true, this list uses selective access. |
id | The list ID. This corresponds to the listId parameter. |
itemCount | The number of list items present in the list. |
managedBy | Not currently used. |
name | The list name. |
nextitemIndex | Contains the index of the next new item in the list. Used only by numbered lists. |
numberedList | A true value indicates this is a numbered list. |
parent | The parent hierarchy, which includes this information for the parent list:
|
permittedItems | Indicates how many more items you can add to the existing list. This value changes when the number of items in the list change. |
productionData | A true value indicates this is a production list in Application Lifecycle Management (ALM). |
properties | The list properties, which include:
|
subsets | A list of subsets associated with the list hierarchy, which includes the following information for the parent list:
|
topLevelItem | If present, indicates the top level item in a hierarchy. |
useTopLevelAsPageDefault | A true value indicates this list is the default item in a page selector. |
workflowEnabled | A true value indicates this list is enabled for Workflow. |
If any of the metadata values are not set for a list (for example, no parent or no top-level item), then the result omits the metadata entry.
Note: To use this call, you must be a Workspace Administrator.
Method and endpoint
/workspaces/{workspaceId}/models/{modelId}/lists/{listId}
Parameters
| Parameter | Details |
{workspaceId} |
|
{modelId} |
|
{listId} |
|
Curl example
curl -X GET 'https://api.anaplan.com/2/0/workspaces/{workspaceId}/models/{modelId}/lists/{listId}' \
-H 'Accept: application/json' \
-H 'Authorization: AnaplanAuthToken {anaplan_auth_token}' \
-H 'Content-Type: application/json'
Response
Response header
Content-Type: application/json
Response 200 body
{
"meta": {
"schema": "https://api.anaplan.com/2/0/models/102B/objects/list"
},
"status": {
"code": 200,
"message": "Success"
},
"metadata": {
"id": "101000000001",
"name": "Sales Reps",
"properties": [
{
"name": "Salesforce",
"format": "TEXT",
"notes": "",
"referencedBy": ""
},
{
"name": "Mail",
"format": "TEXT",
"notes": "",
"referencedBy": ""
}
],
"hasSelectiveAccess": false,
"parent": {
"id": "101000000000",
"name": "Organization"
},
"managedBy": "",
"numberedList": false,
"useTopLevelAsPageDefault": false,
"itemCount": 1,
"workflowEnabled": false,
"productionData": false
}
}