Retrieve the items from a dimension that match one of a list of names or a list or codes.
Notes:
- To use this call, you must be a Workspace Administrator.
- This call doesn't return results for names or codes for which an item doesn't exist.
- If the given workspace, model, or dimension don't exist, this call returns a
404code. - If the dimension doesn't support codes and codes are provided, this call returns a
400code. - Supported dimensions are:
- Lists - the request must include
NameorCodeof list item must be provided as input. - Time - the request must include the time period name (as visible in Anaplan UI, for example "May 21") as input.
- Version - the request must include the name of the version as input.
- Users - the request must include the user name as input.
- Lists - the request must include
Requests that support this feature
curl -X POST https://api.anaplan.com/2/0/workspaces/{workspaceId}/models/{modelId}/dimensions/{dimensionId}/items \
-H ‘Authorization: AnaplanAuthToken {anaplan_auth_token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' --data-raw '<see Request body>'
Method and endpoint
/workspaces/{workspaceId}/models/{modelId}/dimensions/{dimensionId}/items
Parameters
| Parameter | Details |
{workspaceId} |
|
{modelId} |
|
{dimensionId} |
|
Curl example
curl -X POST https://api.anaplan.com/2/0/workspaces/{workspaceId}/models/{modelId}/dimensions/{dimensionId}/items \
-H ‘Authorization: AnaplanAuthToken {anaplan_auth_token}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' --data-raw '<see Request body>'
Response
Response 200 body
{
"meta" : {
"schema":"https://api.anaplan.com/2/0/objects/dimension"
},
"status" : {
"code":200,
"message":"Success"
},
"items":[
{
"name":"South",
"id":"208000000001",
"code":"S"
},
{
"name":"West",
"id":"208000000004",
"code":"W"
}
]
}