Object Configuration API Code Samples

Selection of code samples that demonstrate the use of the Object Configuration API. Copy and edit these code samples to suit your needs.

When using the code samples, remember to replace:

  • {vanity_name} with your tenant name
  • {api_key} with your API key
  • {security_token} with a valid security token

These code samples may not include all available parameters and request body fields for each endpoint. For the endpoint's full request schema, see "Object Configuration" in API Reference.

Calculation concepts

This section provides sample requests for calculation concept requests.

Retrieve all calculation concepts

Use this sample request to get all the calculation concepts available in production.

Copy
cURL sample request: Retrieve a list of all calculation concepts
curl -X GET --url 'https://{vanity_name}.api.visier.io/v1/admin/calculation-concepts' \
-H 'apikey:{api_key}' \
-H 'Cookie:VisierASIDToken={security_token}'

The response returns details about each calculation concept, including its uuid and name.

Retrieve the configuration of a calculation concept

Use this sample request to get the details of a specific calculation concept's configuration.

Copy
cURL sample request: Retrieve the configuration of calculation concept 87752ef2-e89e-4303-b1eb-2ecd58ec22ad
curl -X GET --url 'https://{vanity_name}.api.visier.io/v1/admin/calculation-concepts/87752ef2-e89e-4303-b1eb-2ecd58ec22ad \
-H 'apikey:{api_key}' \
-H 'Cookie:VisierASIDToken={security_token}'

The response returns configuration details about the calculation concept, including its perspectives and analyticObjectFilters.

Map dimension members to nodes in a calculation concept

Use this sample request to configure a calculation concept.

Copy
cURL sample request: Map Resignation and Other Exit to the concept 87752ef2-e89e-4303-b1eb-2ecd58ec22ad
curl -X PUT --url 'https://{vanity_name}.api.visier.io/v1/admin/calculation-concepts/87752ef2-e89e-4303-b1eb-2ecd58ec22ad/configure \
-H 'apikey:{api_key}' \
-H 'Cookie:VisierASIDToken={security_token}'
-H 'Content-Type: application/json'
-d '{
        "perspectivesToMap": [{
            "perspectiveId": "5151c931-48e8-4918-a22e-f83f3918a8c4",
            "perspectiveNodes": [{
                "selectionConceptUuid": "4fcd0a59-dc1d-46ce-be04-a7559ac89f97",
                "symbolName": "isExitActualResignation",
            "analyticObjectFilters": [{
                "analyticObjectUuid": "46c4f53a-fca9-455d-9fd1-47e5fadf1474",
                "dimensions": [{
                    "dimensionId": "582769d6-8b51-3673-b2ed-2c12de33daad",
                    "dimensionMembers": [{
                        "dimensionMember": ["Resignation"]
                    },{
                        "dimensionMember": ["Other Exit"]
                    }]
                }]
            }]
        }]
    }]
}’

The response returns the configured concept's ID, the project ID that was published to production, and a message about the request.

Selection concepts

This section provides sample requests for selection concept requests.

Retrieve all selection concepts

Use this sample request to get all the selection concepts available in production.

Copy
cURL sample request: Retrieve a list of all selection concepts
curl -X GET --url 'https://{vanity_name}.api.visier.io/v1/admin/selection-concepts' \
-H 'apikey:{api_key}' \
-H 'Cookie:VisierASIDToken={security_token}'

The response returns details about each selection concept, including its uuid and name.

Retrieve the configuration of a selection concept

Use this sample request to get the details of a specific selection concept's configuration.

Copy
cURL sample request: Retrieve the configuration of selection concept 8c03c1b0-42e7-4d0e-8f64-1fee64962739
curl -X GET --url 'https://{vanity_name}.api.visier.io/v1/admin/selection-concepts/8c03c1b0-42e7-4d0e-8f64-1fee64962739 \
-H 'apikey:{api_key}' \
-H 'Cookie:VisierASIDToken={security_token}'

The response returns configuration details about the calculation concept, including its name and analyticObjectFilters.

Map dimension members to a selection concept

Use this sample request to configure a selection concept.

Copy
cURL sample request: Map Level 4 and Level 5 to selection concept 8c03c1b0-42e7-4d0e-8f64-1fee64962739
curl -X PUT --url 'https://{vanity_name}.api.visier.io/v1/admin/selection-concepts/8c03c1b0-42e7-4d0e-8f64-1fee64962739/configure \
-H 'apikey:{api_key}' \
-H 'Cookie:VisierASIDToken={security_token}'
-H 'Content-Type: application/json'
-d '{
        "analyticObjectFiltersToMap": [{
        "analyticObjectUuid": "2a4463ee-6dd0-452a-bbb1-4fe10e48d411",
        "dimensions": [{
            "dimensionId": "84008324-22ac-4418-ac6c-c3001a44d9c1",
            "dimensionMembers": [{
                "dimensionMember": ["Level 5"]
            }, {
                "dimensionMember": ["Level 4"]
            }]
        }]
    }]
}’

The response returns the configured concept's ID, the project ID that was published to production, and a message about the request.